/*
Theme Name: CCC – Croatian Creative Casting
Theme URI: https://group-ccc.com/
Author: Kowalla Agency
Author URI: https://kowalla.agency/
Description: Custom lightweight theme for Croatian Creative Casting. Rebuilt from the original Elementor design without page-builder dependencies: native WordPress menus, Team / Logo post types and Customizer-editable front page.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: ccc
*/

/* ---------- Tokens ---------- */
:root {
	--ccc-black: #000;
	--ccc-white: #fff;
	--ccc-gold: #ecbc52;
	--ccc-pink: #e6007e;
	--ccc-blue: #009fe3;
	--ccc-muted: #bdbdbd;
	--ccc-font-body: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
	--ccc-font-head: "Oswald", "Roboto Condensed", sans-serif;
	--ccc-font-nav: "Roboto Condensed", "Roboto", sans-serif;
	--ccc-max: 1140px;
	--ccc-gutter: clamp(16px, 4vw, 32px);
	--ccc-header-h: 84px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--ccc-header-h) + 16px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
	margin: 0;
	background: var(--ccc-black);
	color: var(--ccc-white);
	font-family: var(--ccc-font-body);
	font-size: 18px;
	font-weight: 400;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img, video, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--ccc-pink); text-decoration: none; transition: color .2s; }
a:hover, a:focus-visible { color: var(--ccc-blue); }
:focus-visible { outline: 2px solid var(--ccc-blue); outline-offset: 3px; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0 0 .4em; line-height: 1.15; font-weight: 500; }
[id] { scroll-margin-top: calc(var(--ccc-header-h) + 16px); }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto; margin: 0; z-index: 1000;
	top: 8px; left: 8px; padding: 10px 16px; background: var(--ccc-pink); color: #fff;
}

.ccc-container { width: 100%; max-width: var(--ccc-max); margin: 0 auto; padding: 0 var(--ccc-gutter); }
.ccc-narrow { max-width: 820px; }

/* ---------- Typography helpers ---------- */
.ccc-display {
	font-family: var(--ccc-font-body);
	font-weight: 900;
	font-style: italic;
	color: var(--ccc-gold);
	font-size: clamp(34px, 6vw, 72px);
	line-height: 1.1;
	text-align: center;
}
.ccc-title {
	font-family: var(--ccc-font-head);
	color: var(--ccc-blue);
	font-weight: 500;
	letter-spacing: 2px;
	text-transform: uppercase;
	font-size: clamp(30px, 4vw, 48px);
}
.ccc-subtitle {
	font-family: var(--ccc-font-body);
	font-style: italic;
	font-weight: 400;
	color: var(--ccc-pink);
	font-size: clamp(18px, 2vw, 23px);
	margin-bottom: 1em;
}
.ccc-lead { font-size: clamp(16px, 1.6vw, 20px); font-weight: 500; line-height: 1.55; }

/* ---------- Buttons ---------- */
.ccc-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	font-family: var(--ccc-font-body); font-size: 18px; font-weight: 500; line-height: 1.1;
	color: #fff; background: var(--ccc-pink);
	padding: 12px 30px; border-radius: 999px; border: 0; cursor: pointer;
	transition: background .2s, transform .2s;
}
.ccc-btn:hover, .ccc-btn:focus-visible { color: #fff; background: var(--ccc-blue); }
.ccc-btn--block { display: flex; width: 100%; }
.ccc-icon-btn {
	display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
	background: var(--ccc-pink); color: #fff;
}
.ccc-icon-btn:hover, .ccc-icon-btn:focus-visible { background: var(--ccc-blue); color: #fff; }
.ccc-icon-btn svg { width: 20px; height: 20px; fill: currentColor; }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 100;
	background: var(--ccc-black);
	border-bottom: 2px solid var(--ccc-pink);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.site-header__inner {
	display: flex; align-items: center; justify-content: space-between; gap: 24px;
	min-height: var(--ccc-header-h);
}
.site-logo { flex: 0 0 auto; width: clamp(150px, 18vw, 230px); color: #fff; }
.site-logo img, .site-logo svg { width: 100%; height: auto; }

.primary-nav { display: flex; align-items: center; gap: 20px; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; }
.primary-nav a {
	display: block; padding: 12px 12px;
	font-family: var(--ccc-font-nav); font-size: 19px; color: #fff; white-space: nowrap;
}
.primary-nav a:hover, .primary-nav a:focus-visible,
.primary-nav .current-menu-item > a, .primary-nav a.is-active { color: var(--ccc-blue); }
.primary-nav .ccc-btn { white-space: nowrap; }

.nav-toggle {
	display: none; background: none; border: 0; padding: 10px; margin-right: -10px; cursor: pointer; color: #fff;
}
.nav-toggle:hover { color: var(--ccc-blue); }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
	display: block; width: 28px; height: 2px; background: currentColor; position: relative; transition: transform .25s, opacity .25s;
}
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -9px; }
.nav-toggle__bars::after { top: 9px; }
.nav-open .nav-toggle__bars { background: transparent; }
.nav-open .nav-toggle__bars::before { transform: translateY(9px) rotate(45deg); }
.nav-open .nav-toggle__bars::after { transform: translateY(-9px) rotate(-45deg); }

@media (max-width: 1080px) {
	:root { --ccc-header-h: 72px; }
	.nav-toggle { display: block; }
	.primary-nav {
		position: fixed; inset: var(--ccc-header-top, 74px) 0 auto 0; z-index: 99;
		flex-direction: column; align-items: stretch; gap: 0;
		background: var(--ccc-black); border-bottom: 2px solid var(--ccc-pink);
		padding: 8px var(--ccc-gutter) 24px;
		max-height: calc(100vh - var(--ccc-header-top, 74px)); overflow-y: auto;
		transform: translateY(-8px); opacity: 0; visibility: hidden;
		transition: opacity .2s, transform .2s, visibility .2s;
	}
	.nav-open .primary-nav { transform: none; opacity: 1; visibility: visible; }
	.primary-nav ul { flex-direction: column; align-items: stretch; }
	.primary-nav li + li { border-top: 1px solid #1d1d1d; }
	.primary-nav a { padding: 14px 4px; text-align: center; font-size: 20px; }
	.primary-nav .ccc-btn { margin-top: 16px; align-self: center; }
}
@media (min-width: 1081px) {
	.primary-nav { position: static !important; }
}

/* ---------- Hero ---------- */
.ccc-hero {
	position: relative; display: grid; place-items: center;
	min-height: min(100vh, 900px); min-height: min(100svh, 900px);
	background: #000 center / cover no-repeat;
	overflow: hidden;
}
.ccc-hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ccc-hero__fallback { position: relative; z-index: 1; width: min(60vw, 520px); opacity: .95; }
.ccc-hero.has-video .ccc-hero__fallback { display: none; }
.ccc-hero__scroll {
	position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 2;
	color: #fff; opacity: .7; width: 32px; height: 32px;
	animation: ccc-bounce 2s infinite;
}
.ccc-hero__scroll:hover { color: var(--ccc-gold); opacity: 1; }
@keyframes ccc-bounce { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }
@media (prefers-reduced-motion: reduce) { .ccc-hero__scroll { animation: none; } }

/* ---------- Sections ---------- */
.ccc-section { padding: clamp(56px, 8vw, 110px) 0; }
.ccc-section--tight { padding-top: 0; }
.ccc-divider { border: 0; border-top: 2px solid var(--ccc-pink); margin: 0; }
.ccc-divider--blue { border-top: 1px solid var(--ccc-blue); }
.ccc-center { text-align: center; }

.ccc-intro .ccc-lead { max-width: 820px; margin: 1.6em auto 2em; }

/* ---------- Team ---------- */
.ccc-team { display: grid; gap: clamp(48px, 7vw, 90px); }
.ccc-member {
	display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(24px, 5vw, 70px); align-items: center;
}
.ccc-member:nth-child(even) { grid-template-columns: .85fr 1.15fr; }
.ccc-member:nth-child(even) .ccc-member__photo { order: -1; }
.ccc-member__name { font-family: var(--ccc-font-head); color: var(--ccc-blue); font-size: clamp(26px, 3vw, 34px); letter-spacing: 2px; text-transform: uppercase; margin: 0; }
.ccc-member__bio { font-size: 16px; line-height: 1.65; font-weight: 500; }
.ccc-member__bio p:last-child { margin-bottom: 1.2em; }
.ccc-member__photo img { width: 100%; max-width: 420px; margin: 0 auto; }
@media (max-width: 760px) {
	.ccc-member, .ccc-member:nth-child(even) { grid-template-columns: 1fr; }
	.ccc-member__photo, .ccc-member:nth-child(even) .ccc-member__photo { order: -1; }
	.ccc-member__photo img { max-width: 300px; }
	.ccc-member__text { text-align: center; }
}

/* ---------- Carousels ---------- */
.ccc-carousel { position: relative; margin: 0 auto; padding: 0 52px; }
.ccc-carousel__track {
	display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * 24px) / 3);
	gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
	scrollbar-width: none; padding: 4px 0;
}
.ccc-carousel__track::-webkit-scrollbar { display: none; }
.ccc-carousel__slide { scroll-snap-align: start; display: grid; place-items: center; }
.ccc-carousel--logos .ccc-carousel__track { grid-auto-columns: calc((100% - 3 * 24px) / 4); }
.ccc-carousel--logos img { width: 100%; max-width: 240px; aspect-ratio: 1 / 1; object-fit: contain; filter: brightness(1.1); transition: filter .25s; }
.ccc-carousel--logos .ccc-carousel__slide:hover img { filter: brightness(1.6); }
.ccc-carousel--posters img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 4px; }
.ccc-carousel__btn {
	position: absolute; top: 50%; transform: translateY(-50%);
	width: 36px; height: 36px; border-radius: 50%; border: 0; cursor: pointer;
	background: var(--ccc-pink); color: #fff; display: grid; place-items: center;
}
.ccc-carousel__btn:hover, .ccc-carousel__btn:focus-visible { background: var(--ccc-blue); }
.ccc-carousel__btn svg { width: 16px; height: 16px; fill: currentColor; }
.ccc-carousel__btn--prev { left: 0; }
.ccc-carousel__btn--next { right: 0; }
.ccc-carousel__btn[disabled] { opacity: .35; cursor: default; }
.ccc-carousel-label { font-family: var(--ccc-font-body); font-style: italic; color: var(--ccc-pink); font-size: clamp(22px, 2.4vw, 30px); letter-spacing: 3px; text-transform: uppercase; text-align: center; margin: 2.2em 0 1em; }
@media (max-width: 760px) {
	.ccc-carousel { padding: 0 40px; }
	.ccc-carousel__track, .ccc-carousel--logos .ccc-carousel__track { grid-auto-columns: calc((100% - 16px) / 2); gap: 16px; }
}

.ccc-clients-text { margin-top: clamp(32px, 5vw, 56px); font-size: 16px; font-weight: 500; line-height: 1.7; }

.ccc-gig { text-align: center; }
.ccc-gig .ccc-display { font-size: clamp(30px, 5vw, 62px); margin-bottom: .5em; }

/* ---------- Talents ---------- */
.ccc-talents { font-size: 16px; font-weight: 500; line-height: 1.7; }
.ccc-talents h3 { font-family: var(--ccc-font-head); color: var(--ccc-gold); font-weight: 500; letter-spacing: 1px; font-size: 22px; margin-top: 1.6em; }
.ccc-talent-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px; }
.ccc-talent-card { border: 1px solid #262626; border-radius: 12px; padding: 24px; display: flex; flex-direction: column; gap: 12px; background: #0a0a0a; }
.ccc-talent-card h3 { margin: 0; }
.ccc-talent-card p { margin: 0; flex: 1; }
.ccc-talent-card .ccc-btn { align-self: flex-start; font-size: 16px; padding: 10px 22px; }
@media (max-width: 860px) { .ccc-talent-cards { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { padding: clamp(48px, 7vw, 80px) 0 32px; text-align: center; }
.site-footer .ccc-display { font-size: clamp(34px, 5vw, 62px); margin-bottom: .2em; }
.site-footer__email { font-size: clamp(18px, 2vw, 24px); }
.site-footer .ccc-divider--blue { margin: 32px 0; }
.ccc-social { display: flex; justify-content: center; gap: 24px; list-style: none; padding: 0; margin: 0 0 32px; }
.ccc-social a { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--ccc-pink); color: #000; }
.ccc-social a:hover, .ccc-social a:focus-visible { color: #fff; }
.ccc-social svg { width: 24px; height: 24px; fill: currentColor; }
.footer-nav ul { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 20px; }
.footer-nav a { color: var(--ccc-muted); font-size: 15px; }
.footer-nav a:hover { color: var(--ccc-blue); }
.site-footer__copy { color: #777; font-size: 14px; margin: 0; }

/* ---------- Blog / pages ---------- */
.ccc-page-head { padding: clamp(48px, 7vw, 90px) 0 clamp(24px, 4vw, 40px); text-align: center; }
.ccc-page-head p { color: var(--ccc-muted); max-width: 640px; margin: 0 auto; }
.ccc-posts { display: grid; gap: 32px; padding-bottom: 80px; }
.ccc-post-card { display: grid; grid-template-columns: 280px 1fr; gap: 28px; align-items: start; border-bottom: 1px solid #222; padding-bottom: 32px; }
.ccc-post-card:last-child { border-bottom: 0; }
.ccc-post-card__thumb img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; }
.ccc-post-card__title { font-family: var(--ccc-font-head); color: var(--ccc-blue); font-size: clamp(22px, 2.4vw, 30px); letter-spacing: 1px; margin: 0 0 .2em; }
.ccc-post-card__title a { color: inherit; }
.ccc-post-card__title a:hover { color: var(--ccc-gold); }
.ccc-date { display: block; font-style: italic; color: var(--ccc-pink); margin-bottom: .8em; }
.ccc-post-card p { font-size: 16px; }
@media (max-width: 700px) { .ccc-post-card { grid-template-columns: 1fr; } }

.ccc-article { padding-bottom: 80px; }
.ccc-article__title { font-family: var(--ccc-font-head); color: var(--ccc-blue); font-size: clamp(28px, 4vw, 44px); letter-spacing: 1px; }
.entry-content { font-size: 17px; line-height: 1.75; }
.entry-content > * { margin-top: 0; margin-bottom: 1.2em; }
.entry-content h2, .entry-content h3 { font-family: var(--ccc-font-head); color: var(--ccc-gold); letter-spacing: 1px; margin-top: 1.8em; }
.entry-content strong { color: var(--ccc-pink); font-weight: 700; }
.entry-content ol, .entry-content ul { padding-left: 1.3em; }
.entry-content li { margin-bottom: .6em; }
.entry-content li::marker { color: var(--ccc-pink); font-weight: 700; }
.entry-content figure { margin: 1.4em 0; }
.entry-content figure img { border-radius: 6px; margin: 0 auto; }
.entry-content figcaption { text-align: center; color: var(--ccc-muted); font-size: 14px; margin-top: .5em; }
.entry-content .wp-block-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.entry-content .wp-block-gallery figure { margin: 0; }
.entry-content .wp-block-gallery img { width: 100%; height: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.entry-content .wp-block-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.alignwide { max-width: 1000px; }
.ccc-back { display: inline-block; margin-top: 24px; }

.ccc-pagination { display: flex; justify-content: center; gap: 8px; padding-bottom: 60px; }
.ccc-pagination .page-numbers { padding: 6px 14px; border-radius: 999px; border: 1px solid #333; color: #fff; }
.ccc-pagination .current { background: var(--ccc-pink); border-color: var(--ccc-pink); }

.ccc-404 { min-height: 60vh; display: grid; place-items: center; text-align: center; }

/* Reveal on scroll (only when JS is running) */
.js .ccc-reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .ccc-reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .ccc-reveal { opacity: 1; transform: none; transition: none; } }

/* Custom logo uploaded via Customizer */
.custom-logo-link { flex: 0 0 auto; width: clamp(150px, 18vw, 230px); }
.custom-logo-link img { width: 100%; height: auto; }

/* Portrait screens: the intro video has text burned in, so show it whole (16:9) instead of cropping it. */
@media (max-aspect-ratio: 1/1) {
	.ccc-hero { min-height: 0; aspect-ratio: 16 / 9; }
	.ccc-hero__video { object-fit: contain; }
	.ccc-hero__scroll { display: none; }
}
