/*
Theme Name: CCIAL
Theme URI: https://ccalibano.org
Author: CCIAL
Description: Tema institucional para a Câmara de Comércio e Indústria Angola Líbano.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: ccial
*/

:root {
  --ccial-ink: #17161a;
  --ccial-muted: #6f6871;
  --ccial-wine: #67001d;
  --ccial-red: #b41129;
  --ccial-green: #0c7444;
  --ccial-gold: #c9a24a;
  --ccial-paper: #f8f7f4;
  --ccial-white: #ffffff;
  --ccial-line: #e7e1da;
  --ccial-shadow: 0 18px 45px rgba(23, 22, 26, 0.12);
  --ccial-radius: 8px;
  --ccial-container: min(1180px, calc(100vw - 40px));
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ccial-ink);
  background: var(--ccial-paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--ccial-line);
  backdrop-filter: blur(16px);
}

.header-inner {
  width: var(--ccial-container);
  min-height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 240px;
}

.brand img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.brand-title {
  display: grid;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0;
}

.brand-title span:last-child {
  color: var(--ccial-wine);
}

.main-menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
  color: #332b31;
  font-weight: 700;
  font-size: 0.94rem;
}

.main-menu a:hover,
.main-menu .current-menu-item > a {
  color: var(--ccial-red);
}

.header-cta,
.button,
.wpcf7-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 0;
  border-radius: var(--ccial-radius);
  background: var(--ccial-wine);
  color: var(--ccial-white);
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.button:hover,
.header-cta:hover,
.wpcf7-submit:hover {
  transform: translateY(-1px);
  background: var(--ccial-red);
  box-shadow: 0 14px 26px rgba(103, 0, 29, 0.2);
}

.button.is-light {
  background: var(--ccial-white);
  color: var(--ccial-wine);
}

.button.is-ghost {
  background: transparent;
  color: var(--ccial-wine);
  border: 1px solid rgba(103, 0, 29, 0.25);
}

.hero {
  min-height: 650px;
  display: grid;
  align-items: center;
  color: var(--ccial-white);
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.52) 45%, rgba(0, 0, 0, 0.08)),
    var(--hero-image) center/cover no-repeat;
}

.hero-inner,
.section-inner {
  width: var(--ccial-container);
  margin: 0 auto;
}

.hero-content {
  max-width: 760px;
  padding: 92px 0;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--ccial-gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(2.6rem, 7vw, 5.7rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.18rem;
  line-height: 1.25;
}

.lead {
  max-width: 760px;
  color: #4f474d;
  font-size: 1.12rem;
}

.hero .lead {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.section {
  padding: 92px 0;
}

.section.is-white {
  background: var(--ccial-white);
}

.section.is-dark {
  color: var(--ccial-white);
  background: #161318;
}

.section.is-dark .lead,
.section.is-dark p {
  color: rgba(255, 255, 255, 0.75);
}

.section-head {
  max-width: 790px;
  margin-bottom: 38px;
}

.grid {
  display: grid;
  gap: 22px;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-card,
.event-card,
.director-card,
.article-card,
.contact-panel {
  border: 1px solid var(--ccial-line);
  border-radius: var(--ccial-radius);
  background: var(--ccial-white);
  overflow: hidden;
}

.feature-card {
  padding: 26px;
}

.feature-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  object-fit: contain;
}

.feature-card p,
.event-card p,
.director-card p,
.article-card p {
  color: var(--ccial-muted);
}

.story-panel {
  padding: 42px;
  border-radius: var(--ccial-radius);
  color: var(--ccial-white);
  background: linear-gradient(135deg, var(--ccial-wine), #25151a);
}

.quote-mark {
  width: 58px;
  margin-bottom: 24px;
}

.image-stack {
  display: grid;
  grid-template-columns: 1fr 0.82fr;
  gap: 18px;
  align-items: end;
}

.image-stack img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--ccial-radius);
  box-shadow: var(--ccial-shadow);
}

.image-stack img:nth-child(2) {
  margin-bottom: -34px;
}

.event-card img,
.article-card img {
  width: 100%;
  aspect-ratio: 1.25 / 1;
  object-fit: cover;
}

.event-card-content,
.article-card-content {
  padding: 22px;
}

.date {
  color: var(--ccial-red);
  font-weight: 900;
  font-size: 0.9rem;
}

.stats {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  margin-top: 38px;
  padding-top: 32px;
}

.stat {
  padding-right: 18px;
}

.stat strong {
  display: block;
  color: var(--ccial-gold);
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: 1;
}

.cta-band {
  color: var(--ccial-white);
  background:
    linear-gradient(90deg, rgba(103, 0, 29, 0.94), rgba(22, 19, 24, 0.88)),
    var(--cta-image) center/cover no-repeat;
}

.cta-band .section-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.director-card {
  padding: 18px;
  text-align: center;
}

.director-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--ccial-radius);
  background: #f1edf0;
}

.director-card h3 {
  margin-top: 18px;
  font-size: 1rem;
}

.director-card p {
  margin-bottom: 0;
  font-size: 0.9rem;
  line-height: 1.45;
}

.value-list {
  padding: 0;
  margin: 20px 0 0;
  list-style: none;
}

.value-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
}

.value-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 11px;
  height: 11px;
  border-radius: 99px;
  background: var(--ccial-green);
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 34px;
  align-items: start;
}

.contact-panel {
  padding: 30px;
}

.form-grid {
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
  color: #443a41;
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--ccial-line);
  border-radius: var(--ccial-radius);
  padding: 14px 15px;
  color: var(--ccial-ink);
  background: #fff;
  font: inherit;
}

textarea {
  min-height: 150px;
  resize: vertical;
}

.site-footer {
  color: rgba(255, 255, 255, 0.78);
  background: #121014;
}

.footer-inner {
  width: var(--ccial-container);
  margin: 0 auto;
  padding: 58px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 34px;
}

.footer-grid h3 {
  color: var(--ccial-white);
  font-size: 1rem;
}

.footer-grid p,
.footer-grid a {
  color: rgba(255, 255, 255, 0.72);
}

.footer-bottom {
  margin-top: 42px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 0;
  }

  .main-menu {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 16px;
  }

  .header-cta {
    display: none;
  }

  .hero {
    min-height: 560px;
  }

  .grid.two,
  .grid.three,
  .grid.four,
  .contact-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .cta-band .section-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .image-stack {
    grid-template-columns: 1fr;
  }

  .image-stack img:nth-child(2) {
    margin-bottom: 0;
  }
}

@media (max-width: 560px) {
  :root {
    --ccial-container: min(100vw - 24px, 1180px);
  }

  .section {
    padding: 64px 0;
  }

  .hero-content {
    padding: 68px 0;
  }

  .brand {
    min-width: 0;
  }

  .story-panel {
    padding: 28px;
  }

  .button {
    width: 100%;
  }
}

/* Principal page built from the supplied visual sequence. */
.home-sequence {
  background: #eaf4fc;
  font-family: "Montserrat", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.principal-objectives {
  padding: 8px 20px 0;
  background: #eaf4fc;
}

.principal-objectives-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
}

.objective-block {
  min-height: 198px;
  padding: 42px 78px;
  color: #ffffff;
  background: #191a1d;
}

.objective-intro {
  border-top-right-radius: 220px 78px;
}

.objective-card {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 14px;
  align-content: center;
}

.objective-card-1 {
  border-bottom-right-radius: 190px 86px;
}

.objective-card-2 {
  border-top-left-radius: 190px 86px;
}

.objective-card-3 {
  border-bottom-left-radius: 190px 72px;
}

.objective-card-5 {
  border-bottom-right-radius: 190px 86px;
}

.objective-card-6 {
  border-top-left-radius: 190px 86px;
}

.objective-card-7 {
  border-bottom-left-radius: 190px 72px;
}

.objective-dot {
  width: 30px;
  height: 30px;
  margin-top: 2px;
  border-radius: 50%;
  background: #ff9d23;
}

.objective-block h2,
.objective-block h3,
.objective-block p {
  margin: 0;
}

.objective-block h2 {
  max-width: 390px;
  font-size: 1.7rem;
  line-height: 1.18;
  text-transform: uppercase;
}

.objective-block h3 {
  margin-bottom: 14px;
  color: #ff9d23;
  font-size: 1.02rem;
}

.objective-block p {
  max-width: 410px;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.48;
}

.objective-intro p {
  margin-top: 22px;
}

.quote-strip {
  background: #850811;
  color: #ffffff;
}

.quote-strip-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 22px 28px 28px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 70px;
  align-items: center;
}

.quote-strip img {
  width: 256px;
  height: 256px;
  border-radius: 50%;
  object-fit: cover;
}

.quote-copy {
  max-width: 640px;
  font-weight: 900;
}

.quote-symbol {
  display: block;
  height: 30px;
  font-size: 3.2rem;
  line-height: 1;
}

.quote-copy p {
  margin: 0 0 12px;
  font-size: 1.45rem;
  line-height: 1.28;
}

.quote-copy strong {
  font-size: 1.36rem;
}

.events-showcase {
  padding: 18px 10px 52px;
  background: #ffffff;
}

.events-inner {
  max-width: 1160px;
  margin: 0 auto;
}

.events-showcase h2 {
  margin: 0 0 20px;
  text-align: center;
  font-size: 3rem;
}

.events-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.event-tile {
  display: grid;
  grid-template-rows: auto 1fr auto;
  text-align: center;
}

.event-tile img {
  width: 100%;
  aspect-ratio: 1.05 / 1;
  object-fit: cover;
  border-radius: 14px;
}

.event-tile h3 {
  min-height: 58px;
  margin: 12px 8px 8px;
  font-size: 0.98rem;
  line-height: 1.16;
}

.event-tile a,
.newsletter-box button,
.membership-actions a,
.library-hero a,
.home-about a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 0;
  border-radius: 9px;
  background: #850811;
  color: #ffffff;
  font-weight: 800;
}

.event-tile a {
  min-height: 48px;
}

.business-impact {
  padding: 36px 24px 0;
  background: #ffffff;
}

.impact-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.82fr 1fr;
  gap: 54px;
  align-items: center;
}

.impact-copy h2 {
  max-width: 470px;
  margin-bottom: 24px;
  font-size: 2.72rem;
  line-height: 1.18;
}

.impact-copy p {
  max-width: 470px;
  font-size: 1rem;
  line-height: 1.62;
}

.impact-visual {
  position: relative;
  min-height: 420px;
}

.impact-visual > img {
  width: 78%;
  margin-left: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 14px;
}

.impact-stats {
  position: absolute;
  left: 0;
  bottom: 20px;
  width: 72%;
  padding: 24px 20px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 28px;
  text-align: center;
  color: #ffffff;
  background: #850811;
}

.impact-stats strong {
  display: block;
  font-size: 2.7rem;
  line-height: 1;
}

.impact-stats span {
  display: block;
  margin-top: 10px;
  font-weight: 800;
  font-size: 0.84rem;
}

.newsletter-row {
  max-width: 1030px;
  margin: 42px auto 0;
  display: grid;
  grid-template-columns: 0.86fr 1fr;
  gap: 54px;
  align-items: end;
}

.newsletter-box {
  padding-bottom: 36px;
  text-align: center;
}

.newsletter-box h2 {
  max-width: 450px;
  margin: 0 auto 10px;
  font-size: 2.12rem;
  line-height: 1.18;
}

.newsletter-box p {
  margin-bottom: 18px;
}

.newsletter-box form {
  max-width: 420px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
  text-align: left;
}

.newsletter-box label {
  font-weight: 500;
}

.newsletter-box input {
  border: 0;
  border-radius: 0;
  background: #eeeeee;
}

.newsletter-box button {
  width: 132px;
  min-height: 56px;
  margin: 8px auto 0;
  border-radius: 14px;
  font-size: 1.18rem;
}

.newsletter-phone {
  width: 100%;
  max-height: 330px;
  object-fit: contain;
  object-position: left bottom;
}

.annual-work {
  background: #850811;
  color: #ffffff;
}

.annual-work-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 36px 24px 58px;
  display: grid;
  grid-template-columns: 0.92fr 1fr;
  gap: 52px;
  align-items: center;
}

.annual-work img {
  width: 100%;
  max-height: 330px;
  object-fit: contain;
}

.annual-work h2 {
  margin-bottom: 20px;
  font-size: 3rem;
  line-height: 1.25;
}

.annual-work p {
  font-weight: 800;
  line-height: 1.45;
}

.membership-cta {
  background: #eaf4fc;
}

.membership-inner {
  max-width: 1050px;
  margin: 0 auto;
  padding: 26px 24px 40px;
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  gap: 70px;
  align-items: center;
}

.membership-inner img {
  width: 100%;
  max-height: 360px;
  object-fit: contain;
}

.membership-inner h2 {
  max-width: 520px;
  font-size: 2.68rem;
  line-height: 1.24;
}

.membership-inner p {
  max-width: 520px;
  font-weight: 900;
}

.membership-actions {
  display: flex;
  gap: 24px;
  margin-top: 30px;
}

.membership-actions a {
  min-width: 172px;
  min-height: 48px;
  border-radius: 999px;
  background: #000000;
}

.library-hero {
  min-height: 360px;
  padding: 58px 24px;
  display: grid;
  place-items: start center;
  text-align: center;
  color: #ffffff;
  background:
    linear-gradient(rgba(0, 0, 0, 0.38), rgba(0, 0, 0, 0.38)),
    url("assets/images/screen-library-hero.jpg") center/cover no-repeat;
}

.library-hero-inner {
  max-width: 760px;
  visibility: hidden;
}

.library-hero h1 {
  margin-bottom: 16px;
  font-size: 3.7rem;
  line-height: 1.2;
  text-transform: uppercase;
}

.library-hero p {
  max-width: 450px;
  margin: 0 auto 28px;
  font-weight: 800;
  line-height: 1.34;
}

.library-hero a {
  width: 300px;
  min-height: 58px;
  margin: 0 auto;
  border-radius: 999px;
  background: #d91531;
}

.home-about {
  background: #eaf4fc;
}

.home-about-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 44px 24px 8px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.home-about-copy h2 {
  font-size: 2.8rem;
}

.home-about-copy p {
  line-height: 1.65;
}

.home-about-copy a {
  width: 330px;
  min-height: 52px;
  margin-top: 24px;
  border-radius: 999px;
  background: #850811;
}

.home-about-inner img {
  width: 100%;
  max-height: 430px;
  object-fit: contain;
}

@media (max-width: 920px) {
  .principal-objectives-grid,
  .quote-strip-inner,
  .events-row,
  .impact-inner,
  .newsletter-row,
  .annual-work-inner,
  .membership-inner,
  .home-about-inner {
    grid-template-columns: 1fr;
  }

  .objective-block,
  .objective-intro,
  .objective-card-1,
  .objective-card-2,
  .objective-card-3,
  .objective-card-5,
  .objective-card-6,
  .objective-card-7 {
    border-radius: 0;
  }

  .objective-block {
    min-height: auto;
    padding: 34px 28px;
  }

  .quote-strip-inner {
    gap: 24px;
    text-align: center;
  }

  .quote-strip img {
    margin: 0 auto;
  }

  .impact-visual {
    min-height: auto;
  }

  .impact-visual > img,
  .impact-stats {
    position: static;
    width: 100%;
  }

  .membership-actions {
    flex-wrap: wrap;
  }

  .library-hero h1 {
    font-size: 2.55rem;
  }
}

@media (max-width: 560px) {
  .objective-card {
    grid-template-columns: 1fr;
  }

  .quote-copy p {
    font-size: 1.16rem;
  }

  .events-showcase h2,
  .annual-work h2,
  .impact-copy h2,
  .membership-inner h2,
  .home-about-copy h2 {
    font-size: 2rem;
  }

  .impact-stats {
    grid-template-columns: 1fr;
  }

  .membership-actions a,
  .library-hero a,
  .home-about-copy a {
    width: 100%;
  }
}
