/*
Theme Name: GCC Total Child
Theme URI: https://www.centraliens-chine.org/
Description: GCC child theme for the Total parent theme: language switcher, translated home and small layout additions.
Author: GCC
Template: total
Version: 0.1.0
Text Domain: gcc-total-child
*/

.gcc-lang-switcher {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  margin-left: 12px;
}

.gcc-lang-switcher a {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  font-size: 12px;
  line-height: 1.4;
  text-decoration: none;
}

.gcc-lang-switcher a.is-current {
  background: #b5121b;
  border-color: #b5121b;
  color: #fff;
}

.gcc-hero {
  padding: 72px 20px 48px;
  background: #f7f3ef;
}

.gcc-hero-inner {
  max-width: 980px;
  margin: 0 auto;
}

.gcc-hero .gcc-kicker {
  color: #b5121b;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.gcc-hero h1 {
  margin: 12px 0 18px;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.gcc-hero p {
  max-width: 720px;
  font-size: 18px;
  line-height: 1.75;
  color: #4f4a45;
}

.gcc-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.gcc-latest {
  max-width: 980px;
  margin: 0 auto;
  padding: 48px 20px 72px;
}

.gcc-latest h2 {
  font-size: 24px;
  margin-bottom: 20px;
}

.gcc-latest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.gcc-latest-card {
  border: 1px solid #e7e1da;
  border-radius: 14px;
  padding: 20px;
  background: #fff;
}

.gcc-latest-card h3 {
  font-size: 18px;
  margin: 0 0 8px;
}

.gcc-latest-card p {
  color: #6b625b;
  margin: 0;
  line-height: 1.6;
}

/* Predictable header (the parent header is replaced for all languages). */
.gcc-header {
  background: #fff;
  border-bottom: 1px solid #ece6df;
  position: relative;
  z-index: 20;
}

.gcc-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.gcc-brand a {
  display: block;
  line-height: 0;
}

.gcc-brand img {
  display: block;
  width: auto;
  height: 48px;
  max-width: min(260px, 52vw);
}

.gcc-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.gcc-nav > a {
  font-size: 13px;
  color: #34302c;
  text-decoration: none;
}

.gcc-nav > a:hover {
  color: #b5121b;
}

.gcc-nav .gcc-lang-switcher {
  margin-left: 4px;
}

@media (max-width: 860px) {
  .gcc-header-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .gcc-nav {
    gap: 10px;
  }
}

/* Hero calls to action */
.gcc-hero-actions a {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 6px;
  background: #b5121b;
  border: 1px solid #b5121b;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.gcc-hero-actions a + a {
  background: #fff;
  color: #b5121b;
}

.gcc-hero-actions a:hover {
  opacity: 0.88;
}
