/*
Theme Name: ATJ Naknada štete
Theme URI: https://atj.rs/
Author: ATJ
Description: Moderna, responzivna WordPress tema za projekat pomoći pri ostvarivanju naknade štete.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.1
Text Domain: atj-naknada-stete
*/

:root {
	--ivory: #f5f0e7;
	--ivory-deep: #ebe2d4;
	--navy: #13263a;
	--slate: #62707d;
	--copper: #b66a43;
	--copper-pale: #ead5c7;
	--white: #fffdf9;
	--line: rgba(19, 38, 58, 0.14);
	--shadow: 0 24px 70px rgba(42, 38, 31, 0.12);
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	background: var(--ivory);
	color: var(--navy);
	font-family: Inter, "Segoe UI", Arial, sans-serif;
	margin: 0;
	-webkit-font-smoothing: antialiased;
}

body.admin-bar .site-header {
	top: 32px;
}

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

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

a:focus-visible,
button:focus-visible {
	outline: 3px solid var(--copper);
	outline-offset: 4px;
}

.site-header {
	align-items: center;
	background: rgba(245, 240, 231, 0.96);
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	margin: 0 auto;
	max-width: 1500px;
	padding: 25px clamp(24px, 4vw, 64px);
	position: relative;
	z-index: 20;
}

.brand {
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(34px, 3vw, 48px);
	font-weight: 700;
	letter-spacing: 0.04em;
	line-height: 1;
	width: fit-content;
}

.brand .custom-logo-link {
	display: block;
	line-height: 0;
}

.brand .custom-logo {
	height: auto;
	max-height: 56px;
	width: auto;
}

.main-nav .menu {
	align-items: center;
	display: flex;
	gap: clamp(24px, 3vw, 48px);
	list-style: none;
	margin: 0;
	padding: 0;
}

.main-nav a {
	font-size: 15px;
	font-weight: 600;
	position: relative;
}

.main-nav a::after {
	background: var(--copper);
	bottom: -8px;
	content: "";
	height: 2px;
	left: 0;
	position: absolute;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 180ms ease;
	width: 100%;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after,
.main-nav .current-menu-item > a::after {
	transform: scaleX(1);
}

.header-phone {
	align-items: flex-end;
	display: flex;
	flex-direction: column;
	font-size: 18px;
	font-weight: 700;
	justify-self: end;
	line-height: 1.15;
}

.header-phone span {
	color: var(--copper);
	font-size: 10px;
	letter-spacing: 0.13em;
	margin-bottom: 4px;
	text-transform: uppercase;
}

.menu-toggle {
	align-items: center;
	background: transparent;
	border: 1px solid var(--line);
	border-radius: 10px;
	color: var(--navy);
	display: none;
	font: inherit;
	font-size: 13px;
	font-weight: 700;
	gap: 10px;
	padding: 10px 12px;
}

.menu-toggle i,
.menu-toggle i::before,
.menu-toggle i::after {
	background: currentColor;
	content: "";
	display: block;
	height: 2px;
	position: relative;
	width: 18px;
}

.menu-toggle i::before {
	position: absolute;
	top: -6px;
}

.menu-toggle i::after {
	position: absolute;
	top: 6px;
}

.hero {
	display: grid;
	grid-template-columns: minmax(0, 0.96fr) minmax(420px, 1.04fr);
	margin: 0 auto;
	max-width: 1500px;
	min-height: calc(100vh - 98px);
	overflow: hidden;
	padding: 12px clamp(24px, 4vw, 64px) 56px;
}

.hero-copy {
	align-self: center;
	max-width: 690px;
	padding: 32px clamp(24px, 4vw, 62px) 52px 0;
	position: relative;
	z-index: 2;
}

.eyebrow {
	color: var(--copper);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.12em;
	margin: 0 0 33px;
	text-transform: uppercase;
}

.eyebrow::after {
	background: var(--copper);
	content: "";
	display: block;
	height: 2px;
	margin-top: 14px;
	width: 64px;
}

.hero h1,
.content-header h1 {
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(54px, 5.6vw, 88px);
	font-weight: 400;
	letter-spacing: -0.052em;
	line-height: 0.98;
	margin: 0;
	max-width: 720px;
	text-wrap: balance;
}

.hero h1 em {
	color: var(--copper);
	display: block;
	font-style: italic;
}

.hero-lead {
	color: var(--slate);
	font-size: clamp(18px, 1.45vw, 22px);
	line-height: 1.58;
	margin: 30px 0 0;
	max-width: 630px;
}

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

.button {
	align-items: center;
	border: 1.5px solid var(--navy);
	border-radius: 12px;
	display: inline-flex;
	font-size: 15px;
	font-weight: 700;
	justify-content: center;
	min-height: 56px;
	padding: 0 24px;
	transition: background-color 180ms ease, color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.button:hover,
.button:focus-visible {
	transform: translateY(-2px);
}

.button-primary {
	background: var(--navy);
	color: var(--white);
}

.button-primary:hover,
.button-primary:focus-visible {
	box-shadow: 0 12px 28px rgba(19, 38, 58, 0.2);
}

.button-secondary {
	background: transparent;
}

.button-secondary:hover,
.button-secondary:focus-visible {
	background: var(--copper-pale);
}

.promise {
	align-items: center;
	display: flex;
	gap: 14px;
	margin-top: 33px;
}

.promise-mark {
	align-items: center;
	border: 1.5px solid var(--copper);
	border-radius: 50%;
	color: var(--copper);
	display: inline-flex;
	flex: 0 0 42px;
	font-size: 20px;
	height: 42px;
	justify-content: center;
}

.promise div {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.promise strong {
	font-family: Georgia, "Times New Roman", serif;
	font-size: 19px;
	font-weight: 600;
}

.promise span:last-child {
	color: var(--slate);
	font-size: 13px;
}

.hero-visual {
	align-self: stretch;
	border-radius: 160px 0 46px 46px;
	box-shadow: var(--shadow);
	min-height: 650px;
	overflow: hidden;
	position: relative;
}

.hero-visual::after {
	background: linear-gradient(180deg, transparent 58%, rgba(19, 38, 58, 0.3));
	content: "";
	inset: 0;
	pointer-events: none;
	position: absolute;
}

.hero-visual img {
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.hero-note {
	background: rgba(255, 253, 249, 0.94);
	border: 1px solid rgba(255, 255, 255, 0.6);
	border-radius: 14px;
	bottom: 28px;
	display: flex;
	flex-direction: column;
	gap: 5px;
	left: 28px;
	padding: 16px 20px;
	position: absolute;
	z-index: 2;
}

.hero-note span {
	color: var(--copper);
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.hero-note strong {
	font-family: Georgia, "Times New Roman", serif;
	font-size: 18px;
}

.arch {
	border: 2px solid var(--copper);
	border-bottom: 0;
	border-radius: 80px 80px 0 0;
	height: 285px;
	left: -68px;
	pointer-events: none;
	position: absolute;
	top: 180px;
	width: 136px;
	z-index: 3;
}

.help-section,
.process-section {
	margin: 0 auto;
	max-width: 1500px;
	padding: 125px clamp(24px, 6vw, 96px);
}

.help-section {
	background: var(--navy);
	color: var(--white);
	max-width: none;
}

.help-section > * {
	margin-left: auto;
	margin-right: auto;
	max-width: 1308px;
}

.section-heading {
	align-items: end;
	display: grid;
	gap: 8vw;
	grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
}

.section-heading .eyebrow,
.process-intro .eyebrow {
	margin-bottom: 24px;
}

.section-heading h2,
.process-intro h2,
.contact-copy h2 {
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(42px, 4.4vw, 68px);
	font-weight: 400;
	letter-spacing: -0.04em;
	line-height: 1.05;
	margin: 0;
	text-wrap: balance;
}

.section-heading > p,
.process-intro > p:last-child {
	color: rgba(255, 253, 249, 0.7);
	font-size: 18px;
	line-height: 1.72;
	margin: 0 0 8px;
}

.help-grid {
	display: grid;
	gap: 18px;
	grid-template-columns: repeat(3, 1fr);
	margin-top: 70px;
}

.help-card {
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 20px;
	display: flex;
	flex-direction: column;
	min-height: 370px;
	padding: 30px;
	transition: background-color 180ms ease, transform 180ms ease;
}

.help-card:hover {
	background: rgba(255, 255, 255, 0.04);
	transform: translateY(-4px);
}

.featured-card {
	background: var(--white);
	color: var(--navy);
}

.featured-card:hover {
	background: var(--white);
}

.card-number {
	color: var(--copper);
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.12em;
}

.help-card h3 {
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(27px, 2.2vw, 34px);
	font-weight: 400;
	line-height: 1.13;
	margin: 70px 0 18px;
}

.help-card p {
	color: rgba(255, 253, 249, 0.68);
	font-size: 15px;
	line-height: 1.7;
	margin: 0;
}

.featured-card p {
	color: var(--slate);
}

.card-link {
	color: var(--copper);
	font-size: 13px;
	font-weight: 700;
	margin-top: auto;
	padding-top: 32px;
}

.section-note {
	color: rgba(255, 253, 249, 0.52);
	font-size: 13px;
	margin-bottom: 0;
	margin-top: 27px;
}

.process-section {
	padding-bottom: 90px;
}

.process-intro {
	max-width: 900px;
}

.process-intro > p:last-child {
	color: var(--slate);
	margin-top: 25px;
	max-width: 650px;
}

.steps {
	display: grid;
	gap: 0;
	grid-template-columns: repeat(3, 1fr);
	list-style: none;
	margin: 75px 0 110px;
	padding: 0;
}

.steps li {
	border-top: 1px solid var(--line);
	display: grid;
	gap: 26px;
	grid-template-columns: auto 1fr;
	padding: 30px 34px 20px 0;
}

.steps li + li {
	padding-left: 34px;
}

.steps li > span {
	align-items: center;
	background: var(--copper-pale);
	border-radius: 50%;
	color: var(--copper);
	display: inline-flex;
	flex: 0 0 40px;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 18px;
	height: 40px;
	justify-content: center;
	width: 40px;
}

.steps h3 {
	font-family: Georgia, "Times New Roman", serif;
	font-size: 24px;
	font-weight: 400;
	line-height: 1.2;
	margin: 5px 0 12px;
}

.steps p {
	color: var(--slate);
	font-size: 14px;
	line-height: 1.65;
	margin: 0;
}

.contact-panel {
	background: var(--copper);
	border-radius: 30px;
	color: var(--white);
	display: grid;
	gap: clamp(50px, 7vw, 110px);
	grid-template-columns: 1.1fr 0.9fr;
	overflow: hidden;
	padding: clamp(38px, 6vw, 84px);
	position: relative;
}

.contact-panel::after {
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: 140px 140px 0 0;
	content: "";
	height: 390px;
	pointer-events: none;
	position: absolute;
	right: -110px;
	top: 52px;
	width: 220px;
}

.contact-kicker {
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.13em;
	margin: 0 0 26px;
	text-transform: uppercase;
}

.contact-copy h2 {
	max-width: 700px;
}

.contact-copy > p:last-child {
	color: rgba(255, 253, 249, 0.78);
	font-size: 17px;
	line-height: 1.65;
	margin: 26px 0 0;
	max-width: 570px;
}

.contact-actions {
	align-self: center;
	position: relative;
	z-index: 2;
}

.contact-phone {
	background: var(--white);
	border-radius: 16px;
	color: var(--navy);
	display: flex;
	flex-direction: column;
	padding: 22px 25px;
	transition: transform 180ms ease, box-shadow 180ms ease;
}

.contact-phone:hover,
.contact-phone:focus-visible {
	box-shadow: 0 16px 34px rgba(71, 34, 18, 0.18);
	transform: translateY(-3px);
}

.contact-phone span {
	color: var(--copper);
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.13em;
	text-transform: uppercase;
}

.contact-phone strong {
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(27px, 3vw, 39px);
	font-weight: 500;
	margin-top: 4px;
}

.contact-list {
	border-top: 1px solid rgba(255, 255, 255, 0.35);
	margin-top: 30px;
	padding-top: 25px;
}

.contact-list > span {
	font-size: 13px;
	font-weight: 700;
}

.contact-list ul {
	color: rgba(255, 253, 249, 0.8);
	font-size: 13px;
	line-height: 1.8;
	margin: 13px 0 0;
	padding-left: 18px;
}

.site-footer {
	align-items: center;
	border-top: 1px solid var(--line);
	display: grid;
	gap: 32px;
	grid-template-columns: 0.3fr 0.8fr 1.1fr;
	margin: 0 auto;
	max-width: 1308px;
	padding: 35px 24px 45px;
}

.footer-brand {
	font-size: 34px;
}

.site-footer p {
	color: var(--slate);
	font-size: 13px;
	line-height: 1.55;
	margin: 0;
}

.footer-small {
	justify-self: end;
	max-width: 500px;
	text-align: right;
}

.mobile-contact {
	display: none;
}

.content-shell {
	margin: 0 auto;
	max-width: 1100px;
	min-height: 65vh;
	padding: 90px 24px 120px;
}

.content-header {
	border-bottom: 1px solid var(--line);
	margin-bottom: 55px;
	padding-bottom: 45px;
}

.content-header h1 {
	font-size: clamp(48px, 6vw, 82px);
	max-width: 950px;
}

.entry-content {
	font-family: Georgia, "Times New Roman", serif;
	font-size: 19px;
	line-height: 1.75;
	max-width: 790px;
}

.entry-content h2,
.entry-content h3 {
	color: var(--navy);
	font-family: Inter, "Segoe UI", Arial, sans-serif;
	line-height: 1.25;
	margin-top: 2.2em;
}

.entry-content a,
.text-link {
	color: var(--copper);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.featured-image {
	border-radius: 24px;
	margin-bottom: 55px;
	overflow: hidden;
}

.post-grid {
	display: grid;
	gap: 24px;
	grid-template-columns: repeat(2, 1fr);
}

.post-card {
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: 20px;
	padding: 32px;
}

.post-card h2 {
	font-family: Georgia, "Times New Roman", serif;
	font-size: 30px;
	font-weight: 400;
	line-height: 1.2;
}

.post-card p {
	color: var(--slate);
	line-height: 1.65;
}

.post-meta {
	color: var(--copper) !important;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

@media (max-width: 980px) {
	body.admin-bar .site-header {
		top: 46px;
	}

	.site-header {
		grid-template-columns: 1fr auto auto;
	}

	.menu-toggle {
		display: inline-flex;
		grid-column: 2;
		grid-row: 1;
	}

	.main-nav {
		background: var(--white);
		border: 1px solid var(--line);
		border-radius: 14px;
		box-shadow: var(--shadow);
		display: none;
		left: 24px;
		padding: 18px;
		position: absolute;
		right: 24px;
		top: calc(100% - 10px);
	}

	.main-nav.is-open {
		display: block;
	}

	.main-nav .menu {
		align-items: stretch;
		flex-direction: column;
		gap: 0;
	}

	.main-nav a {
		display: block;
		padding: 13px;
	}

	.header-phone {
		grid-column: 3;
		grid-row: 1;
		margin-left: 16px;
	}

	.hero {
		grid-template-columns: 1fr;
		min-height: auto;
	}

	.hero-copy {
		max-width: 760px;
		padding-right: 0;
	}

	.hero-visual {
		border-radius: 100px 24px 24px;
		min-height: 540px;
	}

	.arch {
		display: none;
	}

	.section-heading,
	.contact-panel {
		grid-template-columns: 1fr;
	}

	.section-heading {
		gap: 28px;
	}

	.help-grid,
	.steps {
		grid-template-columns: 1fr;
	}

	.help-card {
		min-height: 300px;
	}

	.help-card h3 {
		margin-top: 50px;
	}

	.steps {
		margin-bottom: 80px;
	}

	.steps li,
	.steps li + li {
		padding: 27px 0;
	}

	.site-footer {
		grid-template-columns: 0.3fr 0.7fr;
	}

	.footer-small {
		grid-column: 1 / -1;
		justify-self: start;
		text-align: left;
	}
}

@media (max-width: 600px) {
	.site-header {
		gap: 10px;
		padding: 18px;
	}

	.brand {
		font-size: 32px;
	}

	.header-phone {
		display: none;
	}

	.hero {
		padding: 0 18px 28px;
	}

	.hero-copy {
		padding: 45px 0 34px;
	}

	.eyebrow {
		margin-bottom: 25px;
	}

	.hero h1 {
		font-size: clamp(44px, 14vw, 64px);
	}

	.hero-lead {
		font-size: 17px;
	}

	.button {
		width: 100%;
	}

	.promise {
		align-items: flex-start;
	}

	.hero-visual {
		border-radius: 72px 20px 20px;
		min-height: 440px;
	}

	.hero-note {
		bottom: 18px;
		left: 18px;
		right: 18px;
	}

	.help-section,
	.process-section {
		padding-bottom: 82px;
		padding-top: 82px;
	}

	.help-grid {
		margin-top: 48px;
	}

	.help-card {
		min-height: 280px;
		padding: 25px;
	}

	.steps {
		margin-bottom: 65px;
		margin-top: 48px;
	}

	.contact-panel {
		border-radius: 22px;
	}

	.contact-panel::after {
		display: none;
	}

	.site-footer,
	.post-grid {
		grid-template-columns: 1fr;
	}

	.footer-small {
		grid-column: auto;
	}

	.mobile-contact {
		background: var(--navy);
		border: 1px solid rgba(255, 255, 255, 0.2);
		border-radius: 12px;
		bottom: 14px;
		box-shadow: 0 10px 28px rgba(19, 38, 58, 0.25);
		color: var(--white);
		display: block;
		font-size: 14px;
		font-weight: 800;
		left: 14px;
		padding: 16px 20px;
		position: fixed;
		right: 14px;
		text-align: center;
		z-index: 30;
	}

	.site-footer {
		padding-bottom: 95px;
	}
}

@media (prefers-reduced-motion: no-preference) {
	.hero-copy {
		animation: rise-in 500ms ease both;
	}

	.hero-visual {
		animation: rise-in 650ms 80ms ease both;
	}

	.hero-visual img {
		animation: image-settle 1000ms ease both;
	}

	@keyframes rise-in {
		from {
			opacity: 0;
			transform: translateY(16px);
		}
	}

	@keyframes image-settle {
		from {
			transform: scale(1.035);
		}
	}
}

