/*
Theme Name: Semana Cyber 2026
Theme URI: https://catho2026.actionpage.com.br/
Author: Catho
Author URI: https://catho2026.actionpage.com.br/
Description: Landing page tema para a Semana Cyber 2026 da Catho.
Version: 1.0
Requires at least: 5.9
Requires PHP: 7.4
Text Domain: semana-cyber-2026
*/

:root {
  --pink: #DA1C75;
  --blue: #17299A;
  --gradient: linear-gradient(90deg, #DA1C75 0%, #17299A 100%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Montserrat', sans-serif;
  background-color: #060608;
  background-image: radial-gradient(rgba(255,255,255,0.16) 1px, transparent 1.5px);
  background-size: 24px 24px;
  color: #fff;
  overflow-x: hidden;
}

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

a { text-decoration: none; }

.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 40px;
}

.btn {
  display: inline-block;
  background: var(--gradient);
  color: #fff;
  font-weight: 700;
  font-size: clamp(16px, 1.6vw, 20px);
  padding: clamp(12px, 1.8vw, 16px) clamp(22px, 3vw, 32px);
  border-radius: 0;
  border: none;
  cursor: pointer;
  margin-bottom: 40px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.btn:hover {
  background: #fff;
  color: var(--pink);
  transform: translateY(-1px);
}

/* Hero */
.hero {
  position: relative;
  min-height: 780px;
  padding: clamp(60px, 8vw, 100px) 0;
  overflow: hidden;
}

.hero-content {
  position: relative;
}

.hero-top-stripe {
  position: absolute;
  top: 0;
  right: 0;
  width: 58%;
  height: 160px;
  background: linear-gradient(90deg, transparent 16%, #DA1C75 62%, #17299A 91%);
  z-index: 0;
}

.hero-bg-image {
  position: absolute;
  top: 0;
  right: -10%;
  width: auto;
  height: 100%;
  z-index: 3;
}

.hero-bg-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.icon-bar {
  display: inline-flex;
  align-items: center;
  background: transparent;
  padding: 0;
  margin-bottom: 40px;
  max-width: 100%;
}

.icon-bar img {
  height: auto;
  width: auto;
  max-height: clamp(28px, 3vw, 40px);
  max-width: 100%;
}

.hero-title-image {
  width: 100%;
  max-width: min(630px, 60vw);
  height: auto;
}

.hero-text {
  background: linear-gradient(90deg, #DA1C75 0%, #17299A 60%, transparent 100%);
  width: 88%;
  padding: clamp(20px, 3vw, 35px) clamp(18px, 2.5vw, 30px);
  margin: 40px 0 40px;
}

.hero-text-inner {
  width: 50%;
  color: #fff;
  font-size: clamp(16px, 1.8vw, 24px);
  line-height: clamp(24px, 2.6vw, 36px);
}

/* Section headings */
.section-title {
  font-size: clamp(34px, 5vw, 68px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 40px;
}

.section-title .accent {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Quando vai acontecer */
.when-section {
  padding: clamp(50px, 8vw, 90px) 0;
}

.when-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(30px, 5vw, 60px);
  align-items: start;
}

.dates-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(10px, 1.5vw, 16px);
  margin-bottom: 28px;
}

.date-card {
  position: relative;
  z-index: 0;
  background: linear-gradient(135deg, rgba(61, 61, 61, 0.5) 0%, rgba(61, 61, 61, 0.5) 100%);
  border: 1px solid #3D3D3D80;
  border-radius: 0;
  padding: 20px 18px;
  transition: background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.date-card:hover {
  background: linear-gradient(135deg, rgba(218, 28, 117, 0.5) 0%, rgba(23, 41, 154, 0.5) 100%);
  box-shadow: 23px 38px 100px 0px #DA1C7540;
  border-color: #DA1C7580;
}

.date-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(218, 28, 117, 0.5) 0%, rgba(23, 41, 154, 0.5) 100%);
  box-shadow: 23px 38px 100px 0px #DA1C7540;
  opacity: 0;
}

.date-card .dia-label {
  font-size: 11px;
  letter-spacing: 2px;
  font-weight: 700;
  color: #fff;
}

.date-card .dia-number {
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  margin: 4px 0 10px;
  transition: color 0.2s ease;
}

.date-card:hover .dia-number {
  color: #DA1C75;
}

@keyframes dateCardBorderPulse {
  0%, 100% { border-color: #3D3D3D80; }
  16%, 18% { border-color: #DA1C7580; }
  33% { border-color: #3D3D3D80; }
}

@keyframes dateCardOverlayPulse {
  0%, 100% { opacity: 0; }
  16%, 18% { opacity: 1; }
  33% { opacity: 0; }
}

@keyframes dateNumberPulse {
  0%, 100% { color: #fff; }
  16%, 18% { color: #DA1C75; }
  33% { color: #fff; }
}

.date-card .dia-full {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.date-card .dia-time {
  font-size: 13px;
  color: #fff;
  margin-top: 2px;
}

.when-text p {
  font-size: clamp(16px, 1.8vw, 24px);
  line-height: clamp(24px, 2.6vw, 36px);
  color: #d7d7dc;
  margin-bottom: 40px;
}

.when-text a {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
}

/* Quem pode participar */
.who-section {
  padding: clamp(40px, 6vw, 60px) 0 clamp(60px, 8vw, 100px);
}

.who-grid {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: clamp(24px, 4vw, 40px);
  align-items: center;
}

.who-text p {
  font-size: clamp(16px, 1.8vw, 24px);
  line-height: clamp(24px, 2.6vw, 36px);
  color: #d7d7dc;
  margin-bottom: 40px;
}

.who-text p b {
  color: #fff;
  font-weight: 700;
}

.who-image {
  position: relative;
}

.who-image img {
  width: 100%;
  height: auto;
}

/* Garanta sua vaga */
.cta-section {
  padding: clamp(6px, 8vw, 100px) 0;
  background: radial-gradient(75.32% 89.4% at 50% 113.26%, #DA1C75 0%, rgba(23, 41, 154, 0.7) 63.15%, rgba(23, 41, 154, 0) 100%);
}

.cta-title {
  width: 100%;
  font-size: clamp(34px, 5vw, 68px);
  font-weight: 800;
  margin-bottom: 40px;
}

.cta-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(32px, 5vw, 80px);
}

.cta-copy {
  display: flex;
  flex-direction: column;
}

.cta-grid p {
  font-size: clamp(16px, 1.8vw, 24px);
  line-height: clamp(24px, 2.6vw, 36px);
  color: #f0f0f5;
  margin-bottom: 40px;
}

.cta-grid p b {
  font-weight: 700;
  color: #fff;
}

.cta-card {
  justify-self: center;
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, rgba(61, 61, 61, 0.5) 0%, rgba(61, 61, 61, 0.5) 100%);
  border: 1px solid #3D3D3D80;
  border-radius: 0;
  padding: 32px;
  text-align: center;
  transition: background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.cta-card:hover {
  background: linear-gradient(135deg, rgba(218, 28, 117, 0.5) 0%, rgba(23, 41, 154, 0.5) 100%);
  box-shadow: 23px 38px 100px 0px #DA1C7540;
  border-color: #DA1C7580;
}

.cta-card .label {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 400;
  font-style: normal;
  line-height: 16.5px;
  letter-spacing: 2.2px;
  text-align: center;
  text-transform: uppercase;
  color: #fff;
}

.cta-card .date {
  font-size: clamp(52px, 9vw, 100px);
  font-weight: 800;
  margin: 10px 0 24px;
}

.cta-card .date .day { color: #fff; }
.cta-card .date .slash { color: var(--pink); }
.cta-card .date .month { color: var(--pink); }

.cta-card .btn {
  width: 100%;
  margin-bottom: 0;
}

/* Footer */
footer {
  background: #000;
  padding: 32px 0;
}

.footer-logos {
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-logos img {
  width: auto;
}

/* Responsive */
@media (max-width: 1100px) {
  .hero-bg-image {
    right: -6%;
  }
  .hero-text-inner {
    width: 65%;
  }
}

@media (max-width: 900px) {
  .when-grid, .who-grid, .cta-grid {
    grid-template-columns: 1fr;
  }
  .cta-section {
    padding: clamp(100px, 8vw, 100px) 0;
  }
  .date-card {
    animation: dateCardBorderPulse 6s ease-in-out infinite;
  }
  .date-card::after {
    animation: dateCardOverlayPulse 6s ease-in-out infinite;
  }
  .date-card .dia-number {
    animation: dateNumberPulse 6s ease-in-out infinite;
  }
  .date-card:nth-child(1), .date-card:nth-child(1)::after, .date-card:nth-child(1) .dia-number {
    animation-delay: 0s;
  }
  .date-card:nth-child(2), .date-card:nth-child(2)::after, .date-card:nth-child(2) .dia-number {
    animation-delay: -4s;
  }
  .date-card:nth-child(3), .date-card:nth-child(3)::after, .date-card:nth-child(3) .dia-number {
    animation-delay: -2s;
  }
  .hero {
    min-height: 0;
    padding: 53px 0 54px;
  }
  .hero-top-stripe {
    display: none;
  }
  .hero-content {
    display: flex;
    flex-direction: column;
  }
  .hero-copy {
    order: 1;
  }
  .hero-bg-image {
    position: relative;
    order: 2;
    right: 0;
    width: 100%;
    height: 320px;
    margin-top: 24px;
    z-index: 0;
    opacity: 0.3;
  }
  .hero-title-image { max-width: 320px; }
  .hero-text { width: 100%; }
  .hero-text-inner { width: 100%; }
  .who-image { order: -1; }
  .cta-title { text-align: center; }
  .cta-copy { text-align: center; align-items: center; }
  .container { padding: 0 24px; }
}

@media (max-width: 600px) {
  .icon-bar { margin-bottom: 40px; }
  .hero-text { margin: 46px 0; }
  .btn { margin-bottom: 24px; width: 100%; text-align: center; padding: 18px 28px; }
  .section-title, .cta-title { margin-bottom: 24px; }
  .when-text p, .who-text p, .cta-grid p, .hero-text-inner { margin-bottom: 24px; }
  .dates-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .cta-card { padding: 24px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .dates-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .date-card { padding: 24px 20px; }
  .icon-bar img { max-height: 26px; }
}

@media (max-width: 1200px) {
  .hero-bg-image {
    position: absolute;
    top: 0;
    right: -6%;
    width: auto;
    height: 108%;
  }
}

/* Short viewports (small/laptop notebooks, e.g. 1366x768) - keep the hero inside the first fold */
@media (max-height: 800px) and (min-width: 700px) and (max-width: 1300px) {
  .hero {
    min-height: 0;
    padding: 48px 0;
  }
  .hero-top-stripe {
    height: 130px;
  }
  .icon-bar {
    margin-bottom: 24px;
  }
  .icon-bar img {
    max-height: 40px;
  }
  .hero-title-image {
    max-width: 480px;
  }
  .hero-text {
    padding: 24px 28px;
    margin: 24px 0;
  }
  .hero-text-inner {
    font-size: 18px;
    line-height: 26px;
  }
  .hero-copy .btn {
    padding: 14px 28px;
    font-size: 17px;
    margin-bottom: 0;
  }
  .hero-bg-image {
    position: absolute;
    top: 0;
    right: -6%;
    width: auto;
    height: 121%;
    z-index: 3;
  }
}
