/*
  Morepour for Diageo Procurement
  Shared stylesheet for the four proposal pages.
  Palette: deep teal, gold accent, warm paper, ink.
*/

:root{
  --teal: #123f43;
  --teal-soft: #e4ebea;
  --teal-tint: #f0f4f3;
  --gold: #c9a227;
  --gold-soft: #f7efd8;
  --gold-border: #e3cd8c;
  --paper: #f7f5f0;
  --paper-raised: #ffffff;
  --ink: #1d2421;
  --ink-soft: #4d5652;
  --ink-faint: #7c8480;
  --rule: #e0ddd3;
  --rule-strong: #cfccc0;
  --shadow: 0 1px 2px rgba(18,63,67,0.06), 0 8px 20px rgba(18,63,67,0.07);
  --radius: 14px;
  --radius-sm: 10px;
}

*{ box-sizing: border-box; }

html{ background: var(--paper); }

body{
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

h1, h2, h3{
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--teal);
  margin: 0;
}

.wrap{
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 20px 64px;
}

.bar-inner{
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */

.site-bar{
  background: var(--paper-raised);
  border-bottom: 1px solid var(--rule);
}

.site-header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 0;
}

.logo-link{
  display: inline-flex;
  line-height: 0;
}

.logo-link:focus-visible{ outline: 3px solid var(--teal); outline-offset: 3px; }

.logo{
  display: block;
  height: auto;
  width: clamp(140px, 44vw, 210px);
  max-width: 100%;
  background: var(--paper-raised);
}

.prepared-for{
  font-size: 13px;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
  text-align: right;
}

/* Tab navigation */

.tab-bar{
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--paper-raised);
  border-bottom: 1px solid var(--rule);
  box-shadow: 0 2px 8px rgba(18,63,67,0.06);
  overflow-x: auto;
}

.tab-row{
  display: flex;
  align-items: stretch;
  gap: 2px;
}

.tab-link{
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  text-align: center;
  text-decoration: none;
  color: var(--ink-soft);
  padding: 12px 4px 10px;
  border-bottom: 3px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.tab-link:hover{ color: var(--teal); background: var(--teal-tint); }
.tab-link:focus-visible{ outline: 3px solid var(--teal); outline-offset: -3px; }

.tab-label{
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.3;
}

.tab-sub{
  display: none;
  font-size: 12px;
  color: var(--ink-faint);
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.tab-link.active{
  color: var(--teal);
  border-bottom-color: var(--gold);
}

.tab-link.active .tab-sub{ color: var(--ink-soft); }

@media (max-width: 420px){
  .tab-label{ font-size: 11px; letter-spacing: 0.01em; }
  .tab-link{ padding: 12px 2px 10px; }
}

@media (max-width: 330px){
  .tab-label{ font-size: 9.5px; }
}

@media (min-width: 560px){
  .tab-label{ font-size: 13.5px; }
  .tab-link{ padding: 14px 8px 12px; }
}

@media (min-width: 620px){
  .tab-sub{ display: block; }
}

/* Page intro */

.page-head{ margin-bottom: 36px; }

.kicker{
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-soft);
  border: 1px solid var(--gold-border);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
  font-weight: 700;
}

h1{
  font-weight: 800;
  font-size: 30px;
  line-height: 1.22;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

.subline{
  margin: 0;
  color: var(--ink-soft);
  font-size: 19px;
  line-height: 1.5;
}

/* Body copy */

main{ display: block; }

.section{
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
}

.section:first-of-type{
  margin-top: 40px;
}

h2{
  font-weight: 700;
  font-size: 21px;
  line-height: 1.3;
  margin-bottom: 14px;
}

h3{
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 10px;
}

p{ margin: 0 0 14px; }
p:last-child{ margin-bottom: 0; }

.lede{ font-size: 19px; color: var(--ink); }

ul, ol{ margin: 0 0 14px; padding-left: 22px; }
ul:last-child, ol:last-child{ margin-bottom: 0; }
li{ margin-bottom: 8px; }
li:last-child{ margin-bottom: 0; }

ul.plain-list{ list-style: none; padding-left: 0; }
ul.plain-list li{
  padding-left: 26px;
  position: relative;
}
ul.plain-list li::before{
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--gold);
}

/* Cards */

.card{
  background: var(--paper-raised);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 22px;
}

.card + .card{ margin-top: 14px; }

/* Cover: link cards */

.link-cards{
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 22px;
}

.link-card{
  display: block;
  background: var(--paper-raised);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--teal);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 22px;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.15s ease, transform 0.1s ease;
}

.link-card:hover{ border-left-color: var(--gold); }
.link-card:focus-visible{ outline: 3px solid var(--teal); outline-offset: 2px; }

.link-card-title{
  display: block;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 19px;
  color: var(--teal);
  margin-bottom: 6px;
}

.link-card-body{
  display: block;
  font-size: 17px;
  color: var(--ink-soft);
  line-height: 1.55;
}

.cta-line{
  margin-top: 26px;
  font-size: 18px;
  font-weight: 600;
  color: var(--teal);
  text-align: center;
}

/* Capability / equipment grids */

.grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 18px;
}

@media (min-width: 620px){
  .grid{ grid-template-columns: 1fr 1fr; }
}

.grid-card{
  background: var(--paper-raised);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 20px;
}

.grid-card-title{
  display: block;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--teal);
  margin-bottom: 6px;
}

.grid-card-body{
  display: block;
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.55;
}

/* Product wordmark chip (call centre page) */

.product-chip{
  display: inline-flex;
  background: var(--paper-raised);
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 14px 18px;
  margin-bottom: 18px;
}

.product-chip img{
  display: block;
  width: 100%;
  max-width: 300px;
  height: auto;
}

/* People grid */

.people-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 18px;
}

@media (min-width: 620px){
  .people-grid{ grid-template-columns: 1fr 1fr; }
}

.person-card{
  background: var(--teal-tint);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.person-name{
  display: block;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--teal);
  margin-bottom: 6px;
}

.person-bio{
  display: block;
  font-size: 15.5px;
  color: var(--ink-soft);
  line-height: 1.55;
}

/* Gains columns */

.gains{
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  margin-top: 6px;
}

@media (min-width: 620px){
  .gains{ grid-template-columns: 1fr 1fr; }
}

/* Close line */

.close-line{
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
  font-size: 18px;
  font-weight: 600;
  color: var(--teal);
}

/* Footer */

footer.site-footer{
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
}

.contact-block{
  background: var(--teal);
  color: var(--paper);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 22px;
}

.contact-name{
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 17px;
  color: #ffffff;
  margin-bottom: 2px;
}

.contact-role{
  font-size: 14px;
  color: var(--gold);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 10px;
}

.contact-details{
  font-size: 15.5px;
  color: var(--paper);
  line-height: 1.7;
}

.contact-details a{
  color: #ffffff;
  text-decoration: underline;
  text-decoration-color: rgba(247,245,240,0.5);
}

.footer-nav{
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 14.5px;
}

.footer-nav a{
  color: var(--teal);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid var(--gold-border);
  padding-bottom: 1px;
}

.footer-nav a:hover{ border-bottom-color: var(--teal); }
.footer-nav a:focus-visible{ outline: 3px solid var(--teal); outline-offset: 2px; }

@media (min-width: 560px){
  body{ font-size: 18px; }
  h1{ font-size: 36px; }
  .wrap{ padding: 36px 28px 72px; }
  .bar-inner{ padding: 0 28px; }
  .logo{ height: 40px; }
}

@media print{
  body{ background: #ffffff; }
  .card, .link-card, .grid-card, .contact-block, .person-card, .product-chip{
    box-shadow: none;
    border: 1px solid var(--rule-strong);
  }
  .contact-block{ background: var(--teal-tint); color: var(--ink); }
  .contact-name, .contact-details, .contact-details a{ color: var(--ink); }
  .contact-role{ color: var(--teal); }
  .tab-bar{ position: static; box-shadow: none; }
}

@media (prefers-reduced-motion: reduce){
  *{ transition-duration: 0.001ms !important; }
}
