/* Coco De Mal - cocodemalweb.com
   Theme: accordion (bellows pleats) on warm paper white, wine red and pine green accents.
   Layout: hero left image / right text, four bellows cards, 2x2 gallery, pleat-line timeline. */

:root {
  --paper: #f7f2e8;
  --paper-2: #fdfaf4;
  --paper-3: #efe6d4;
  --line: #e2d5bd;
  --line-2: #d3c1a3;
  --ink: #2b2320;
  --ink-soft: #5c5148;
  --ink-body: #3a322c;
  --wine: #7a2a2a;
  --pine: #3a5a4a;
  --wine-tint: #f3e6d8;
  --shadow: 0 16px 38px rgba(43, 35, 32, .14);
  --pleat-wine: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='10' viewBox='0 0 16 10'%3E%3Cpath d='M0 10 L4 0 L8 10 L12 0 L16 10' fill='none' stroke='%237a2a2a' stroke-width='1.7'/%3E%3C/svg%3E");
  --pleat-pine: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='10' viewBox='0 0 16 10'%3E%3Cpath d='M0 10 L4 0 L8 10 L12 0 L16 10' fill='none' stroke='%233a5a4a' stroke-width='1.7'/%3E%3C/svg%3E");
  --rail-wine: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='22' viewBox='0 0 11 22'%3E%3Cpath d='M5.5 0 L11 5.5 L5.5 11 L0 16.5 L5.5 22' fill='none' stroke='%237a2a2a' stroke-width='1.6'/%3E%3C/svg%3E");
  --shell: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: #f7f2e8;
  color: #2b2320;
  font-family: 'Livvic', 'Segoe UI', Tahoma, sans-serif;
  font-size: 17px;
  line-height: 1.62;
  font-weight: 400;
}

img { max-width: 100%; height: auto; display: block; }
a { color: #7a2a2a; }
:focus-visible { outline: 3px solid #3a5a4a; outline-offset: 2px; }
::selection { background: #f3e6d8; color: #2b2320; }

h1, h2, h3, .wordmark {
  font-family: 'Capriola', 'Livvic', 'Segoe UI', sans-serif;
  font-weight: 400;
  line-height: 1.12;
}
h1 { font-size: clamp(2.1rem, 4vw, 3.1rem); margin: 0 0 14px; }
h2 { font-size: clamp(1.45rem, 2.5vw, 1.95rem); margin: 0 0 14px; }
h3 { font-size: 1.18rem; margin: 0 0 10px; }

p { margin: 0 0 16px; }

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

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: #7a2a2a; color: #f7f2e8;
  padding: 10px 16px; z-index: 20; text-decoration: none;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- header ---------- */

.site-header { background: #f7f2e8; border-bottom: 1px solid #e2d5bd; }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px 26px; flex-wrap: wrap; padding-top: 15px; padding-bottom: 15px;
}
.wordmark { font-size: 1.4rem; color: #2b2320; text-decoration: none; letter-spacing: .015em; }
.wordmark:hover { color: #7a2a2a; }

.main-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 22px; }
.main-nav a {
  color: #453b34; background: #f7f2e8;
  text-decoration: none; font-size: .94rem; font-weight: 600;
  padding: 3px 0; border-bottom: 2px solid transparent;
}
.main-nav a:hover { color: #7a2a2a; background: #f7f2e8; border-bottom-color: #c9a98f; }
.main-nav a[aria-current="page"] { color: #7a2a2a; background: #f7f2e8; border-bottom-color: #7a2a2a; }

.btn {
  display: inline-flex; align-items: center;
  background: #7a2a2a; color: #f7f2e8;
  font-family: 'Livvic', 'Segoe UI', sans-serif; font-weight: 600;
  font-size: 1rem; padding: .74rem 1.3rem; border: 1px solid #7a2a2a;
  border-radius: 4px; text-decoration: none;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.btn:hover { background: #3a5a4a; color: #f7f2e8; border-color: #3a5a4a; }
.btn-sm { padding: .42rem .95rem; font-size: .88rem; }

/* .main-nav a (0-1-1) outranks .btn (0-1-0): the button colours are re-stated here on purpose. */
.main-nav a.btn { color: #f7f2e8; background: #7a2a2a; border: 1px solid #7a2a2a; border-bottom: 1px solid #7a2a2a; }
.main-nav a.btn:hover { color: #f7f2e8; background: #3a5a4a; border-color: #3a5a4a; }

/* ---------- hero ---------- */

.hero { padding: 36px 0 30px; }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 424px) minmax(0, 1fr);
  gap: 48px; align-items: start;
}
.hero-photo { margin: 0; }
.hero-photo img { width: 100%; border: 1px solid #dccdae; box-shadow: var(--shadow); }
.pleat-band { display: block; width: 100%; height: 20px; margin-top: 12px; }
.pleat-band.short { width: 190px; height: 14px; margin-top: 4px; }

.hero-copy { padding-top: 4px; }
.hero-kicker {
  font-size: .84rem; letter-spacing: .15em; text-transform: uppercase;
  color: #7a2a2a; font-weight: 600; margin: 0 0 14px;
}
.hero-title { margin: 0 0 16px; }
.hero-tagline { font-size: 1.24rem; font-weight: 600; color: #453b34; margin: 0 0 16px; }
.hero-intro { color: #3a322c; max-width: 62ch; margin: 0 0 20px; }

.hero-facts {
  list-style: none; margin: 0 0 26px; padding: 0;
  display: flex; flex-wrap: wrap; gap: 8px 20px;
  color: #5c5148; font-size: .95rem;
}
.hero-facts li { display: flex; align-items: center; gap: 9px; }
.hero-facts li::before {
  content: ""; width: 7px; height: 7px; background: #3a5a4a;
  transform: rotate(45deg); flex: 0 0 auto;
}

/* ---------- sections ---------- */

.section { padding: 54px 0; }
.section-tight { padding-top: 34px; }
.section-head { margin-bottom: 26px; }

.eyebrow {
  font-size: .8rem; letter-spacing: .16em; text-transform: uppercase;
  color: #7a2a2a; font-weight: 600; margin: 0 0 9px;
}
.section-sub { color: #5c5148; max-width: 74ch; margin: 0; }

/* ---------- partners ---------- */

.partner-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 250px)); gap: 16px; }
.partner-card {
  display: flex; align-items: center; justify-content: center;
  width: 250px; height: 150px;
  background: #fdfaf4; border: 1px solid #e2d5bd; border-radius: 3px;
  text-decoration: none;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.partner-card:hover { border-color: #3a5a4a; box-shadow: 0 12px 26px rgba(43, 35, 32, .13); transform: translateY(-2px); }
.partner-card img { max-width: 188px; max-height: 66px; width: auto; height: auto; object-fit: contain; }

/* ---------- bellows cards (quick profile) ---------- */

.bellows { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.bellow {
  position: relative; background: #fdfaf4; border: 1px solid #e2d5bd;
  border-radius: 3px; padding: 26px 20px 22px; overflow: hidden;
}
.bellow::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 10px;
  background-image: var(--pleat-wine); background-repeat: repeat-x; background-size: 16px 10px;
}
.bellow:nth-child(even)::before { background-image: var(--pleat-pine); }
.bellow .k {
  display: block; font-size: .78rem; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: #7a2a2a; margin: 6px 0 8px;
}
.bellow .v { display: block; font-size: 1.04rem; color: #2b2320; line-height: 1.45; }
.bellow .note { display: block; margin-top: 8px; font-size: .87rem; color: #5c5148; }

/* ---------- about ---------- */

.about-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, .85fr); gap: 46px; align-items: start; }
.about-cols p { color: #3a322c; margin: 0 0 18px; }

.quote-card {
  margin: 0; background: #fdfaf4; border: 1px solid #e2d5bd;
  border-left: 5px solid #7a2a2a; border-radius: 3px; overflow: hidden;
}
.quote-card img { width: 100%; border-bottom: 1px solid #e2d5bd; }
.quote-text {
  font-family: 'Capriola', 'Livvic', sans-serif; font-size: 1.12rem;
  color: #7a2a2a; padding: 18px 22px 4px; margin: 0; line-height: 1.45;
}
.quote-src { padding: 8px 22px 20px; margin: 0; font-size: .88rem; color: #5c5148; }

/* ---------- career split + pleat timeline ---------- */

.career-split { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.35fr); gap: 48px; align-items: start; }
.career-text p { color: #3a322c; }

.pleat-timeline { list-style: none; margin: 0; padding: 0 0 0 32px; position: relative; }
.pleat-timeline::before {
  content: ""; position: absolute; left: 6px; top: 4px; bottom: 4px; width: 11px;
  background-image: var(--rail-wine); background-repeat: repeat-y; background-size: 11px 22px;
}
.pleat-timeline li { position: relative; margin: 0 0 22px; }
.pleat-timeline li:last-child { margin-bottom: 0; }
.pleat-timeline li::before {
  content: ""; position: absolute; left: -32px; top: 7px;
  width: 9px; height: 9px; background: #7a2a2a; transform: rotate(45deg);
}
.pleat-timeline li:nth-child(even)::before { background: #3a5a4a; }
.pleat-timeline .when {
  display: block; font-size: .85rem; font-weight: 600; letter-spacing: .07em;
  text-transform: uppercase; color: #3a5a4a; margin-bottom: 2px;
}
.pleat-timeline .what { display: block; color: #3a322c; font-size: .99rem; }

/* ---------- gallery ---------- */

.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.gallery figure {
  margin: 0; overflow: hidden; border: 1px solid #dccdae; background: #efe6d4;
}
.gallery img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .4s ease; }
.gallery figure:hover img { transform: scale(1.03); }

/* ---------- social ---------- */

.social-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; max-width: 780px; }
.social-row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 15px 18px; background: #fdfaf4; border: 1px solid #e2d5bd; border-radius: 3px;
  text-decoration: none; transition: border-color .18s ease, background .18s ease;
}
.social-row .platform { font-weight: 600; color: #2b2320; font-size: .96rem; }
.social-row .handle { color: #7a2a2a; font-size: .96rem; }
.social-row:hover { border-color: #7a2a2a; background: #f3e6d8; }
.social-row:hover .platform { color: #7a2a2a; }

/* ---------- subpages ---------- */

.page-head { padding: 46px 0 10px; }
.page-head h1 { margin-bottom: 10px; }
.lead { font-size: 1.14rem; color: #3a322c; max-width: 76ch; margin: 18px 0 0; }

.prose { padding: 18px 0 62px; }
.prose h2 { margin: 42px 0 14px; }
.prose h2:first-of-type { margin-top: 8px; }
.prose p { color: #332a24; max-width: 80ch; }
.prose ul.plain { list-style: none; margin: 0 0 18px; padding: 0; max-width: 80ch; }
.prose ul.plain li { padding: 7px 0 7px 22px; position: relative; color: #332a24; }
.prose ul.plain li::before {
  content: ""; position: absolute; left: 2px; top: 16px; width: 7px; height: 7px;
  background: #7a2a2a; transform: rotate(45deg);
}

.fact-list {
  list-style: none; margin: 6px 0 10px; padding: 0;
  max-width: 560px; background: #fdfaf4; border: 1px solid #e2d5bd; border-radius: 3px;
}
.fact-list li {
  display: flex; justify-content: space-between; gap: 20px;
  padding: 12px 18px; border-bottom: 1px dashed #e2d5bd;
}
.fact-list li:last-child { border-bottom: 0; }
.fact-list .k { color: #5c5148; font-size: .93rem; }
.fact-list .v { color: #2b2320; font-weight: 600; font-size: .95rem; text-align: right; }

.stat-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 8px 0 12px; }
.stat { background: #fdfaf4; border: 1px solid #e2d5bd; border-radius: 3px; padding: 18px; }
.stat .n { display: block; font-family: 'Capriola', 'Livvic', sans-serif; font-size: 1.52rem; color: #7a2a2a; }
.stat .l { display: block; font-size: .86rem; color: #5c5148; margin-top: 4px; }

.figure-side { margin: 26px 0; max-width: 380px; }
.figure-side img { width: 100%; border: 1px solid #dccdae; }
.figure-side figcaption { display: none; }

.tbl-wrap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px; margin-bottom: 10px; }
.tbl { width: 100%; border-collapse: collapse; margin: 4px 0 14px; font-size: .95rem; }
.tbl th {
  font-weight: 600; text-align: left; color: #2b2320; font-size: .84rem;
  letter-spacing: .07em; text-transform: uppercase;
  border-bottom: 2px solid #cbb794; padding: 8px 10px;
}
.tbl td { padding: 7px 10px; border-bottom: 1px solid #e2d5bd; color: #332a24; }
.tbl td.n { text-align: right; color: #5c5148; font-variant-numeric: tabular-nums; }
.tbl tr td:first-child { font-weight: 600; }

.note-box {
  background: #fdfaf4; border: 1px solid #e2d5bd; border-left: 5px solid #3a5a4a;
  border-radius: 3px; padding: 18px 22px; max-width: 82ch; margin: 8px 0 20px;
}
.note-box p { margin: 0; color: #3a322c; }

.title-list { list-style: none; margin: 4px 0 18px; padding: 0; }
.title-list li { padding: 13px 0; border-bottom: 1px solid #e2d5bd; max-width: 78ch; }
.title-list .name { font-weight: 600; color: #2b2320; }
.title-list .meta { display: block; color: #5c5148; font-size: .91rem; margin-top: 3px; }

.qa { max-width: 840px; }
.qa-item {
  background: #fdfaf4; border: 1px solid #e2d5bd; border-radius: 3px;
  padding: 20px 22px; margin-bottom: 14px;
}
.qa-item h2 { font-size: 1.18rem; margin: 0 0 10px; }
.qa-item p { margin: 0; color: #332a24; }

/* ---------- footer ---------- */

.site-footer { background: #efe6d4; border-top: 1px solid #d3c1a3; margin-top: 16px; }
.site-footer::before {
  content: ""; display: block; height: 10px;
  background-image: var(--pleat-wine); background-repeat: repeat-x; background-size: 16px 10px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.32fr 1.62fr 1.16fr;
  gap: 20px 26px; align-items: center; padding-top: 26px; padding-bottom: 30px;
}
.footer-brand .brand-name { display: block; font-family: 'Capriola', 'Livvic', sans-serif; font-size: 1.2rem; color: #2b2320; }
.footer-brand .brand-line { display: block; color: #5c5148; font-size: .88rem; margin-top: 4px; }
.language-nav { display: flex; flex-wrap: wrap; gap: 6px 15px; justify-content: center; }
.language-nav a { color: #5b5045; font-size: .9rem; text-decoration: none; border-bottom: 1px solid transparent; }
.language-nav a:hover { color: #7a2a2a; border-bottom-color: #7a2a2a; }
.language-nav a[aria-current="page"] { color: #2b2320; border-bottom-color: #3a5a4a; }
.footer-legal { color: #5c5148; font-size: .89rem; margin: 0; text-align: right; }

/* ---------- 404 ---------- */

.head-404 { padding: 70px 0 80px; }
.head-404 .code { font-family: 'Capriola', 'Livvic', sans-serif; font-size: 3.4rem; color: #7a2a2a; margin: 0 0 6px; }
.head-404 p { max-width: 60ch; }
.link-home {
  display: inline-block; margin-top: 10px; padding: .7rem 1.25rem;
  background: #7a2a2a; color: #f7f2e8; border: 1px solid #7a2a2a; border-radius: 4px;
  text-decoration: none; font-weight: 600;
}
.link-home:hover { background: #3a5a4a; border-color: #3a5a4a; }

/* ---------- responsive ---------- */

@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-photo { max-width: 430px; }
  .about-grid { grid-template-columns: 1fr; gap: 30px; }
  .career-split { grid-template-columns: 1fr; gap: 32px; }
  .bellows { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tbl-wrap { grid-template-columns: 1fr; gap: 12px; }
  .footer-grid { grid-template-columns: 1fr; text-align: left; }
  .language-nav { justify-content: flex-start; }
  .footer-legal { text-align: left; }
}

@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .hero { padding-top: 26px; }
  .header-inner { padding-top: 13px; padding-bottom: 13px; }
  .main-nav { gap: 8px 16px; }
  .main-nav a { font-size: .89rem; }
  .partner-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .partner-card { width: auto; height: 122px; }
  .partner-card img { max-width: 132px; max-height: 52px; }
  .bellows { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .social-list { grid-template-columns: 1fr; }
  .section { padding: 44px 0; }
  .fact-list li { flex-direction: column; gap: 2px; }
  .fact-list .v { text-align: left; }
}
