/* ==========================================================================
   Copperwood Coffee Tabs
   Matched to supplied design reference: neutral white/ink palette, serif
   display type for headings, thin hairline dividers, overlay-style photo
   cards. No color accent beyond near-black ink and light gray surfaces.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,500&family=Work+Sans:wght@400;500;600;700&display=swap');

.cw-coffee-tabs {
  --cw-ink: #303030;
  --cw-body: #57534e;
  --cw-muted: #8a8580;
  --cw-bg: #ffffff;
  --cw-card-bg: #f4f3f1;
  --cw-line: #e5e2dd;
  --cw-check-bg: #26332c;
  --cw-cream: #f6f2ea;

  --cw-font-display: "Dashiell Bright Test", EB Garamond;
  --cw-font-body: "IBM Plex Sans", EB Garamond;

  --cw-radius-lg: 50px;
  --cw-radius-md: 50px;
  --cw-ease: cubic-bezier(0.22, 1, 0.36, 1);

  max-width: 100%;
  margin: 0 auto;
  padding: clamp(20px, 4vw, 48px) 0;
  color: var(--cw-ink);
  background: var(--cw-bg);
  font-family: var(--cw-font-body);
  box-sizing: border-box;
}

.cw-coffee-tabs *,
.cw-coffee-tabs *::before,
.cw-coffee-tabs *::after {
  box-sizing: border-box;
}
.cw-tab,
.cw-tab:hover,
.cw-tab:focus,
.cw-tab:focus-visible,
.cw-tab:active,
.cw-tab.is-active,
.cw-tab.is-active:hover {
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
}
.cw-coffee-tabs img {
  max-width: 100%;
  display: block;
}

/* --------------------------------------------------------------------
   Tabs
   -------------------------------------------------------------------- */
.cw-tab.is-active:hover{
    background: transparent !important;
    background-color: transparent !important;
}
.cw-tabs{
    display: flex;
    justify-content: space-around;
    gap: clamp(18px, 3vw, 40px);
    border-bottom: 1px solid var(--cw-line);
    margin-bottom: clamp(24px, 4vw, 40px);
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.cw-tabs::-webkit-scrollbar {
  display: none;
}

.cw-tab {
  position: relative;
  flex: 0 0 auto;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 0 16px;
  font-family: var(--cw-font-body);
  font-size: clamp(14px, 1.6vw, 22px);
  font-weight: 400;
  color: var(--cw-muted);
  white-space: nowrap;
  transition: color 220ms var(--cw-ease);
}

.cw-tab::after {
  content: '';
  position: absolute;
  left: 15%;
  right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--cw-ink);
  transition: right 320ms var(--cw-ease);
}

.cw-tab:hover {
  color: var(--cw-ink);
}

.cw-tab.is-active {
  color: var(--cw-ink);
  font-weight: 600;
}

.cw-tab.is-active::after {
  right: 15%;
}

.cw-tab:focus-visible {
  outline: 2px solid var(--cw-ink);
  outline-offset: 4px;
  border-radius: 4px;
}

/* --------------------------------------------------------------------
   Panels — fade transition
   -------------------------------------------------------------------- */

.cw-panel {
  opacity: 0;
  transform: translateY(6px);
}
.cw-panels{
    width: 90%;
    margin: 0 auto;
}
.cw-panel.is-active {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 300ms var(--cw-ease), transform 300ms var(--cw-ease);
}

.cw-panel.is-fading-in {
  animation: cw-fade-in 300ms var(--cw-ease);
}

@keyframes cw-fade-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --------------------------------------------------------------------
   Banner
   -------------------------------------------------------------------- */

.cw-banner {
  position: relative;
  border-radius: 50px;
  overflow: hidden;
  min-height: clamp(240px, 34vw, 340px);
  display: flex;
  align-items: flex-end;
  background: #3a2a20;
  isolation: isolate;
}

.cw-banner-image {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 50px;
}

.cw-banner-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform 1400ms var(--cw-ease);
}

.cw-panel.is-active .cw-banner-image img {
  transform: scale(1.05);
}

.cw-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, 0.72) 100%);
  z-index: 1;
}

.cw-banner-content {
  position: relative;
  z-index: 2;
  padding: clamp(18px, 3vw, 32px);
  color: #ffffff;
}

.cw-banner-title {
  font-family: var(--cw-font-display);
  font-weight: 600;
  font-size: clamp(22px, 3.2vw, 30px);
  line-height: 1.15;
  margin: 0 0 8px;
}

.cw-banner-subtitle {
  font-size: clamp(14px, 3.2vw, 20px);
  font-weight: 400;
  letter-spacing: 5px;
  text-transform: uppercase;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.82);
  margin: 0;
}

/* --------------------------------------------------------------------
   Information strip — plain row, hairline dividers
   -------------------------------------------------------------------- */

.cw-information {
  margin-top: clamp(20px, 3vw, 32px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.cw-info-item {
  padding: 4px clamp(14px, 2vw, 24px);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cw-info-label {
  font-family: var(--cw-font-body);
  font-size: clamp(14px, 3.2vw, 16px);
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--cw-ink);
}

.cw-info-value {
  font-family: var(--cw-font-body);
  font-size: clamp(14px, 3.2vw, 16px);
  font-weight: 400;
  color: #303030CC;
  line-height: 1.4;
}

/* --------------------------------------------------------------------
   Bottom grid — left photo card + right info card
   -------------------------------------------------------------------- */

.cw-grid {
  margin-top: clamp(20px, 3.6vw, 32px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 2.4vw, 24px);
  align-items: stretch;
}

.cw-card {
  border-radius: var(--cw-radius-lg);
  overflow: hidden;
}

/* Left: photo with gradient + overlaid title/description */
.cw-left {
  position: relative;
  isolation: isolate;
  min-height: clamp(260px, 30vw, 340px);
  display: flex;
  align-items: flex-end;
  border-radius: 50px !important;
}

.cw-left-image{
    position:absolute;
    inset:0;
    overflow:hidden;
}

.cw-left-image img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
    transition:transform 600ms var(--cw-ease);
}

.cw-left:hover .cw-left-image img{
    transform:scale(1.03);
}

.cw-left{
    position:relative;
    overflow:hidden;
    border-radius:var(--cw-radius-lg);
    min-height:340px;
}
.cw-left-content{
    position: absolute;
    z-index: 99;
    left:35px;
    right: 35px;
    botton:35px;
}
.cw-left-image::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.9) 0%,
        rgba(0, 0, 0, 0.6) 25%,
        rgba(0, 0, 0, 0.2) 45%,
        transparent 70%
    );
}
.cw-left-body{
    position:absolute;
    left:25px;
    right:25px;
    bottom:25px !important;
    z-index:2;
    color:#ffffff;
}

.cw-left-title {
  font-family: var(--cw-font-display);
  font-size: clamp(22px, 2vw, 23px);
  font-weight: 500;
  margin: 0 0 10px;
  color: #ffffff;
}

.cw-left-description {
 font-size: clamp(14px, 2vw, 16px);
  font-weight:400;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.86);
  max-width: 50ch;
}

.cw-left-description p {
  margin: 0 0 10px;
}

.cw-left-description p:last-child {
  margin-bottom: 35px;
}

/* Right: light info card */
.cw-right {
  background: var(--cw-card-bg);
  padding: clamp(22px, 3vw, 32px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cw-right-content h3,
.cw-right-content h4 {
  font-family: var(--cw-font-display);
  color: var(--cw-ink);
  margin: 0 0 10px;
}

.cw-right-content h3 {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 600;
}

.cw-right-content h4 {
  font-family: var(--cw-font-body);
  font-size: 13px;
  font-weight: 700;
  margin-top: 20px;
}
.cw-right-content p:nth-child(1) strong,
.cw-right-content p:nth-child(4) strong {
    font-size: clamp(18px, 2vw, 20px);
       font-weight: 600;
    font-family: 'Dashiell Bright Test';
}
.cw-right-content p {
  font-size: clamp(14px, 2vw, 16px);
  line-height: 1.7;
  color: #303030CC;
  margin: 0 0 12px;
}

.cw-right-content p strong {
  color: var(--cw-ink);
  font-weight: 600;
  font-size: clamp(18px, 2vw, 20px);
    font-family: 'Dashiell Bright Test';
}

.cw-right-content ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cw-right-content li {
  position: relative;
  padding-left: 26px;
  font-size: clamp(14px, 2vw, 16px);
  line-height: 1.5;
  color: var(--cw-body);
}
.cw-right-content li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 5px;
    width: 16px;
    height: 16px;

    background-image: url("https://staging.copperwood-x.com/wp-content/uploads/2025/12/Vector-1_compressed.webp");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}
.cw-right-content a {
  color: var(--cw-ink);
  text-decoration: underline;
}

/* --------------------------------------------------------------------
   Responsive — tablet
   -------------------------------------------------------------------- */

@media (max-width: 900px) {
  .cw-information {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 16px;
  }

  .cw-info-item:nth-child(2n+1) {
    border-left: none;
    padding-left: 0;
  }

  .cw-info-item:nth-child(2n) {
    border-left: 1px solid var(--cw-line);
  }
}

/* --------------------------------------------------------------------
   Responsive — mobile
   -------------------------------------------------------------------- */

@media (max-width: 640px) {
  .cw-tabs {
    justify-content: flex-start;
    padding-left: 25px;
    padding-right: 25px;
  }
.cw-left-description p:last-child {
  margin-bottom: 0;
}
.cw-left-content {
    position: absolute;
    z-index: 99;
    bottom: 0px;
    left:0;
    padding: 20px;
}
.cw-left{
border-radius:24px !important
}
  .cw-banner {
    min-height: 240px;
    border-radius: 24px;
  }

  .cw-grid {
    grid-template-columns: 1fr;
  }

  .cw-left {
    order: 1;
  }

  .cw-right {
    order: 2;
  }
}

/* --------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .cw-coffee-tabs * {
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
  }

  .cw-panel.is-active .cw-banner-image img,
  .cw-left:hover .cw-left-image {
    transform: none;
  }
}