/* style.css */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@300;400;600;700&display=swap');

:root {
    --bg-color: #F5F3ED;
    --text-color: #5A5A5A;
    --terra: #C17C5F;
    --teal: #6B8E8E;
}

* { box-sizing: border-box; }

body, html {
    margin: 0; padding: 0;
    font-family: 'Nunito', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
}

/* --- HEADER --- */
header {
    position: fixed; top: 0; left: 0; width: 100%; height: 80px;
    padding: 0 40px; display: flex; justify-content: space-between; align-items: center;
    z-index: 1000; background: rgba(245, 243, 237, 0.95);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.menu-trigger { font-size: 1.5rem; cursor: pointer; width: 100px; }
.logo { text-align: center; flex-grow: 1; }
.logo h2 { margin: 0; font-size: 1.1rem; letter-spacing: 3px; text-transform: uppercase; color: var(--text-color); }
.connect-container { width: 100px; text-align: right; }
.connect-btn {
    text-decoration: none; color: var(--text-color); font-size: 0.8rem; letter-spacing: 2px;
    border: 1px solid var(--text-color); padding: 10px 25px; border-radius: 4px; transition: 0.3s;
}
.connect-btn:hover { background: var(--terra); border-color: var(--terra); color: white; }

/* --- HERO SLIDESHOW --- */
.hero-container {
    position: relative; width: 100%; height: 75vh; margin-top: 0; overflow: hidden;
}
.slide {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0; transition: opacity 1.5s ease-in-out; z-index: 1;
}
.slide.active { opacity: 1; z-index: 2; }
.slide img {
    width: 100%; height: 100%; object-fit: cover;
    filter: brightness(0.85); animation: zoomEffect 20s infinite alternate;
}
.slide-text {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    text-align: center; color: white; z-index: 10; width: 90%;
}
.slide-text h1 {
    font-size: 2rem; 
    line-height: 1.3; 
    font-weight: 300; 
    letter-spacing: 1px;
    text-transform: none; 
}
@media (min-width: 768px) { .slide-text h1 { font-size: 3rem; letter-spacing: 3px; } }
@keyframes zoomEffect { 0% { transform: scale(1); } 100% { transform: scale(1.1); } }

/* --- OVERLAY MENU --- */
#overlay-menu {
    position: fixed; top: 80px; left: 0; width: 300px; height: calc(100vh - 80px);
    background: var(--bg-color); border-right: 1px solid #ddd; padding: 40px;
    transform: translateX(-100%); transition: transform 0.3s ease; z-index: 999;
}
#overlay-menu.open { transform: translateX(0); }
#overlay-menu a {
    display: block; text-decoration: none; color: var(--text-color);
    font-size: 1.1rem; margin-bottom: 25px; text-transform: uppercase; letter-spacing: 1px;
}
#overlay-menu a.submenu-item {
    margin-left: 30px; 
    font-size: 0.95rem; 
    color: var(--teal); 
    border-bottom: none; 
}

/* --- LAYOUT --- */
.container { max-width: 1200px; margin: 0 auto; padding: 80px 20px; text-align: center; }
h1 { font-weight: 400; letter-spacing: 2px; text-transform: uppercase; }
.grid-3 {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px; margin-top: 50px;
}
.image-card { text-align: center; }
.image-card img { width: 100%; height: 350px; object-fit: cover; margin-bottom: 20px; }
.image-card h3 { color: var(--terra); font-size: 1.1rem; margin-bottom: 10px; text-transform: uppercase; letter-spacing: 1px; }
footer { background: #E0DCD5; padding: 60px; text-align: center; }

/* --- HONEYCOMB GRID & SECTION --- */
.honeycomb-section {
  position: relative;
  padding: 60px 20px;
  overflow: hidden;
  background-color: var(--bg-color);
  /* Pure CSS Subtle Dot Pattern (Replaces missing SVG) */
  /*background-image: radial-gradient(#D5D0C5 2px, transparent 2px);
  background-size: 30px 30px;
  */
  background-image: url("background.svg");
  background-repeat: repeat;       /* or no-repeat, depending on your SVG */
  background-size: auto;            /* or cover / contain */
  background-position: center;
}

.honeycomb-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin: 40px auto;
    width: 800px;
    max-width: 100%;
    padding: 0;
    z-index: 1;
    position: relative;
}

.honey-hex {
  position: relative;
  width: 180px;
  height: 210px;
  margin: -44px 5px; /* Tucks the rows together vertically */
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  overflow: hidden;
  display: block;
  text-decoration: none !important; /* Forces removal of link underlines */
  
  /* Fallback color if image is missing */
  background-color: var(--teal); 
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 12px 30px rgba(0,0,0,0.18);
  transform: translateY(0) scale(1);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  will-change: transform;
}

.honey-hex:nth-child(even) {
    background-color: var(--terra); /* Alternating fallback colors */
}

/* Perfect Horizontal Indent for the 4th item (start of row 2) */
.honey-hex:nth-child(4) { 
    margin-left: 95px; 
}

/* Push second row down slightly */
.honey-hex:nth-child(n+4) {
  margin-top: -20px;  /* adjust between -10px and -30px to taste */
}

.honey-hex:hover {
  transform: translateY(-6px) scale(1.05);
  z-index: 10;
}

.honey-hex img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  /* Hides the ugly purple text if the image is missing! */
  color: transparent; 
  text-indent: -9999px; 
  
  transform: scale(1);
  filter: brightness(0.72) saturate(1.05);
  transition: transform 0.6s ease, filter 0.6s ease;
}

.honey-hex:hover img {
  transform: scale(1.12);
  filter: brightness(0.58) saturate(1.12);
}

/* Overlay content */
.hex-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;

  display: flex;
  flex-direction: column;
  justify-content: center; /* Centers everything vertically in the widest part of the hex */
  align-items: center;     /* Centers everything horizontally */
  text-align: center;      /* Centers the text lines */
  gap: 8px;
  padding: 30px 15px;      /* Keeps text away from the top/bottom points */

  /* Uniform darkening so centered text is readable */
  background: rgba(0, 0, 0, 0.45); 

  opacity: 0.95;
  transition: opacity 0.35s ease, background 0.35s ease;
}

.honey-hex:hover .hex-overlay {
  background: rgba(0, 0, 0, 0.75); /* Darkens slightly on hover to make description pop */
}

.hex-title {
  color: #fff;
  font-weight: 800;
  letter-spacing: 1px;
  font-size: 0.95rem;
  text-transform: uppercase;
}

.hex-desc,
.hex-cta {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.hex-desc {
  color: rgba(255,255,255,0.95);
  font-weight: 600;
  font-size: 0.8rem;
  line-height: 1.4;
  max-width: 20ch; /* Keeps the text block narrow so it fits in the hex */
}

.hex-cta {
  color: #fff;
  letter-spacing: 1px;
  font-size: 0.75rem;
  margin-top: 5px;
}

.honey-hex:hover .hex-desc,
.honey-hex:hover .hex-cta {
  opacity: 1;
  transform: translateY(0);
}

/* --- MODALITIES LIST ROW LAYOUT --- */
.modality-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin: 40px auto;
  max-width: 1000px;
}

.modality-row {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 30px 40px;
  border-radius: 15px;
  background: white; /* Clean card look */
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 5px 20px rgba(0,0,0,0.03); /* Soft shadow */
}

/* Alternate layout automatically: even rows reverse */
.modality-row:nth-child(even) {
  flex-direction: row-reverse;
}

.modality-media {
  flex: 0 0 280px; /* Fixed, smaller width for the image */
}

.modality-media img {
  width: 100%;
  height: 200px; /* Fixed, much smaller height */
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.modality-content {
  flex: 1;
  text-align: left; /* Keep text left aligned next to image */
}

.modality-content h2 {
  margin: 0 0 15px 0;
  color: var(--terra);
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 1.3rem;
}

.modality-content p {
  margin: 0;
  line-height: 1.8;
  font-size: 1rem;
  color: var(--text-color);
}

/* Responsive: stack on mobile, keep consistent spacing */
@media (max-width: 900px) {
  .modality-row,
  .modality-row:nth-child(even) {
    flex-direction: column;
    text-align: center;
    padding: 30px 20px;
  }

  .modality-media {
    flex: 0 0 auto;
    width: 100%;
    max-width: 350px;
  }

  .modality-content {
    text-align: center;
  }
}

/* --- ENHANCED CREDENTIALS --- */
.credentials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2x2 grid */
    gap: 20px;
    margin: 40px 0;
}

.cred-badge {
    background: white;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 8px;
    transition: transform 0.3s ease;
    text-align: center;
}

.cred-badge:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(193, 124, 95, 0.1);
}

.cred-icon {
    width: 50px;
    height: 50px;
    background: var(--bg-color);
    color: var(--terra);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.cred-badge span {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--text-color);
    text-transform: uppercase;
}

/* Responsive: 1 column on small mobile */
@media (max-width: 500px) {
    .credentials-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile Honeycomb Adjustments */
@media (max-width: 800px) {
    .honeycomb-container { width: 350px; }
    .honey-hex { width: 150px; height: 175px; margin: -25px 2px; font-size: 0.75rem; }
    .honey-hex:nth-child(4) { margin-left: 2px; }
    .honey-hex:nth-child(odd) { margin-left: 50px; }
    .honey-hex:nth-child(1) { margin-left: 50px; }
}