/* Modern CSS for Coaching Lenarčič Website (responsive + nav + forms) */
/* General Reset */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

html,
body {
	height: 100%;
}

body {
	background: #f7f9fc;
	color: #1e1e1e;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

/* Containers */
.container {
	width: 90%;
	max-width: 1200px;
	margin: 0 auto;
}

.container-photo {
	width: 100%;
	max-width: 420px;
	aspect-ratio: 4 / 3;
	/* all images same visual ratio */
	border-radius: 18px;
	overflow: hidden;
	box-shadow: 0 20px 50px rgba(8, 30, 60, 0.18);
}

.container-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	/* key property */
	display: block;
}

/* Header / Nav */
.header {
	background: #fff;
	padding: 14px 0;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
	position: sticky;
	top: 0;
	z-index: 1000;
}

.nav-wrap {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	position: relative;
}

.logo {
	font-size: 1.2rem;
	font-weight: 700;
	color: #005fa3;
	letter-spacing: 0.2px;
}

.logo img {
	height: 42px;
	width: auto;
	display: block;
}

/* Main nav links */
.nav {
	display: flex;
	gap: 12px;
	align-items: center;
}

.nav-link,
.nav a {
	color: #333;
	text-decoration: none;
	padding: 8px 12px;
	border-radius: 8px;
	font-weight: 500;
}

.nav a:hover,
.nav-link:hover {
	color: #6b73ff;
	background: rgba(107, 115, 255, 0.12);
}

.nav-link.active {
	background: linear-gradient(135deg, rgba(107, 115, 255, 0.25), rgba(185, 147, 255, 0.18));
	color: #4b4eff;
	box-shadow: 0 6px 18px rgba(107, 115, 255, 0.25);
}

/* Dropdown */
.dropdown {
	position: relative;
}

.dropbtn {
	background: none;
	border: none;
	color: #333;
	font-weight: 500;
	font-size: 1rem;
	line-height: 1.5;
	cursor: pointer;
	padding: 8px 12px;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	transition: background 0.2s ease, color 0.2s ease;
}

.dropbtn .chev {
	font-size: 0.8rem;
	opacity: 0.9;
	display: inline-block;
	transition: transform 0.2s ease;
}

.dropdown:hover .dropbtn {
	background: rgba(107, 115, 255, 0.12);
	color: #4b4eff;
}

.dropdown:hover .dropbtn .chev {
	transform: rotate(180deg);
}

/* Dropdown content */
.dropdown-content {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	min-width: 220px;
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 12px 30px rgba(8, 30, 60, 0.12);
	overflow: hidden;
	z-index: 200;
	opacity: 0;
	pointer-events: none;
	transform: translateY(-6px);
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.dropdown-content.show {
	opacity: 1;
	pointer-events: auto;
	transform: translateY(0);
}

.dropdown-content a {
	display: block;
	padding: 12px 16px;
	color: #222;
	text-decoration: none;
	font-weight: 500;
}

.dropdown-content a:hover {
	background: #f1f6ff;
	color: #005fa3;
}

/* Right controls */
.right-controls {
	display: flex;
	align-items: center;
	gap: 12px;
	z-index: 300;
}

.right-controls .linkedin-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 1.2rem;
	color: #4b4eff;
	transition: color 0.2s ease, transform 0.2s ease;
	margin-right: 8px;
}

.right-controls .linkedin-link:hover {
	color: #005fa3;
	transform: translateY(-1px);
}

/* Language switcher */
.lang-switcher {
	color: #666;
	font-size: 0.95rem;
}

.lang-switcher a {
	color: #666;
	text-decoration: none;
	margin: 0 6px;
	font-weight: 600;
}

.lang-switcher a[aria-current="true"] {
	color: #005fa3;
}

/* Hamburger (mobile) */
.hamburger {
	display: none;
	background: none;
	border: none;
	padding: 8px;
	cursor: pointer;
}

.hamburger span {
	display: block;
	width: 22px;
	height: 2px;
	background: #333;
	margin: 4px 0;
	border-radius: 2px;
	transition: 0.2s;
}

/* Hero */
.hero {
	background: linear-gradient(135deg, #6b73ff, #b993ff);
	padding: 100px 0;
	color: white;
	text-align: center;
	box-shadow: inset 0 -60px 80px rgba(0, 0, 0, 0.08);
}

.hero h1 {
	font-size: 2.6rem;
	margin-bottom: 12px;
	line-height: 1.05;
}

.hero p {
	font-size: 1.15rem;
	margin-bottom: 32px;
	opacity: 0.88;
	max-width: 640px;
	margin-left: auto;
	margin-right: auto;
}

.hero-logo {
  max-width: 380px;   /* adjust to taste */
  width: 100%;
  height: auto;
  margin-bottom: 14px;
}


/* Card images (homepage services) */
.card-image {
	width: 100%;
	max-width: 420px;
	aspect-ratio: 4 / 3;
	border-radius: 16px;
	overflow: hidden;
	margin: 14px auto 10px;
	box-shadow: 0 18px 40px rgba(8, 30, 60, 0.18);
}

.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Buttons */
.primary-btn {
	display: inline-block;
	background: rgba(255, 255, 255, 0.95);
	color: #5a5fff;
	padding: 14px 32px;
	border-radius: 14px;
	font-weight: 800;
	text-decoration: none;
	letter-spacing: 0.2px;
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
	backdrop-filter: blur(6px);
	transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn:hover {
	transform: translateY(-2px);
	background: #ffffff;
	box-shadow: 0 26px 60px rgba(0, 0, 0, 0.22);
}

.secondary-btn {
	display: inline-block;
	padding: 12px 24px;
	border-radius: 12px;
	background: rgba(107, 115, 255, 0.12);
	color: #5a5fff;
	font-weight: 700;
	text-decoration: none;
	transition: background 0.2s ease, transform 0.2s ease;
}

.secondary-btn:hover {
	background: rgba(107, 115, 255, 0.2);
	transform: translateY(-1px);
}

/* Sections */
section {
	margin: 48px 0;
}

h2 {
	color: #08324b;
	margin-bottom: 10px;
}

/* Cards */
.card-row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 20px;
	margin-top: 20px;
	justify-items: center;
}

.card {
	background: #fff;
	border-radius: 12px;
	padding: 20px;
	box-shadow: 0 8px 24px rgba(8, 30, 60, 0.06);
	width: auto;
	max-width: 360px;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
	transform: translateY(-4px);
	box-shadow: 0 14px 36px rgba(8, 30, 60, 0.12);
}

.card h3 {
	margin-bottom: 10px;
	color: #08324b;
}

.card p a:hover {
	text-decoration: underline;
}

/* iPad / Tablet: horizontal scrolling cards */
@media (min-width: 480px) and (max-width: 1023px) and (hover: none) and (pointer: coarse) {
  .card-row {
    display: flex;  /* Switch grid to horizontal slider to avoid lonely last card */
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 12px;
    scroll-snap-type: x mandatory;
  }

  .card {
    flex: 0 0 320px; /* fixed card width */
    scroll-snap-align: start;
  }

  /* Hide scrollbar but keep scrolling */
  .card-row::-webkit-scrollbar {
    display: none;
  }

  .card-row {
    scrollbar-width: none; /* Firefox */
  }
  .card-row::after {
    content: '';
    flex: 0 0 12px;
  }
}



/* Contact form */
form.contact-form {
	display: grid;
	gap: 12px;
	grid-template-columns: 1fr 1fr;
	align-items: start;
	background: #fff;
	padding: 22px;
	border-radius: 12px;
	box-shadow: 0 10px 30px rgba(8, 30, 60, 0.06);
}

.contact-form .full {
	grid-column: 1 / -1;
}

.contact-form input,
.contact-form textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid #e6eef9;
	border-radius: 8px;
	font-size: 0.98rem;
}

.contact-form textarea {
	min-height: 140px;
	resize: vertical;
}

.contact-form button {
	grid-column: 1/-1;
	justify-self: start;
	background: linear-gradient(135deg, #6b73ff, #b993ff);
	color: #fff;
	padding: 14px 26px;
	border-radius: 12px;
	border: none;
	cursor: pointer;
	font-weight: 700;
	letter-spacing: 0.2px;
	box-shadow: 0 10px 28px rgba(107, 115, 255, 0.35);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
	outline: none;
	border-color: #6b73ff;
	box-shadow: 0 0 0 3px rgba(107, 115, 255, 0.2);
}

.contact-form button:hover {
	transform: translateY(-2px);
	box-shadow: 0 16px 38px rgba(107, 115, 255, 0.45);
}

.form-status {
	grid-column: 1/-1;
	font-weight: 600;
}

.form-status.success { 
	color: green; 
}

.form-status.error {
	color: red; 
}

/*ajax validation*/

input.invalid,
textarea.invalid {
  border-color: #e53935;
}

input.valid,
textarea.valid {
  border-color: #4caf50;
}

.field-error {
  display: block;
  font-size: 0.85rem;
  color: #e53935;
  margin-top: 4px;
  min-height: 1em;
}

.field-group {
  display: flex;
  flex-direction: column;
}

.field-group.full {
  grid-column: 1 / -1;
}



/* Honeypot anti-spam */
.hp-field {
	position: absolute !important;
	left: -9999px;
	top: -9999px;
	height: 0;
	width: 0;
	opacity: 0;
	pointer-events: none;
}

/* Footer */
.footer {
	background: #fff;
	padding: 30px 0;
	border-top: 1px solid #eef3f8;
	margin-top: 40px;
	text-align: center;
	color: #6b7280;
}

/* Animations */
@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(6px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Responsive */
@media (max-width:880px) {
	.nav {
		display: none;
		flex-direction: column;
		padding: 16px;
		gap: 8px;
		position: absolute;
		top: 70px;
		left: 0;
		right: 0;
		background: #fff;
		border-radius: 8px;
		margin: 0 12px;
		box-shadow: 0 12px 40px rgba(8, 30, 60, 0.12);
	}

	.nav.show {
		display: flex;
	}

	.hamburger {
		display: block;
	}

	.hero {
		padding: 70px 0;
	}

	.contact-form {
		grid-template-columns: 1fr;
	}

	/* Mobile dropdown */
	.dropdown-content {
		position: static;
		display: none;
		opacity: 1 !important;
		pointer-events: auto !important;
		transform: none !important;
		margin-top: 8px;
	}

	.dropdown-content.show {
		display: block;
	}

	.dropbtn {
		width: 100%;
		justify-content: space-between;
	}
}

/* Section cards */
.section-card {
	background: #fff;
	border-radius: 12px;
	padding: 24px 28px;
	box-shadow: 0 8px 24px rgba(8, 30, 60, 0.06);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	margin: 0 auto 40px;
	max-width: 800px;
}

/* Mobile spacing */
/*@media (max-width:768px) { .right-controls .linkedin-link { margin-right:8px; } }*/
@media (max-width: 880px) {
	.nav-wrap {
		flex-wrap: wrap;
	}

	/* Top row: logo + controls */
	.logo {
		flex: 1;
	}

	.right-controls {
		flex: 1;
		justify-content: flex-end;
	}

	/* Keep icons aligned nicely */
	.right-controls {
		gap: 10px;
	}

	/* Nav drops below header row */
	.nav {
		width: 100%;
		order: 3;
	}
}

.hamburger {
	margin-left: 4px;
}

/* About page */
.about-section {
	margin: 80px auto;
}

.about-grid {
	display: grid;
	grid-template-columns: 1fr 1.2fr;
	gap: 48px;
	align-items: center;
}

.about-photo img {
	width: 100%;
	max-width: 420px;
	border-radius: 18px;
	box-shadow: 0 20px 50px rgba(8, 30, 60, 0.18);
}

.about-text h2 {
	margin-top: 0;
	margin-bottom: 12px;
}

.about-text p {
	margin-bottom: 28px;
}

/* Mobile */
@media (max-width: 880px) {
	.about-grid {
		grid-template-columns: 1fr;
		gap: 32px;
		text-align: center;
	}

	.about-photo img {
		margin: 0 auto;
	}

	.about-text {
		text-align: left;
	}
}

/* Quote band */
.quote-band {
	background: linear-gradient(135deg, #6b73ff, #b993ff);
	color: #fff;
	padding: 70px 0;
	text-align: center;
}

.quote-band blockquote {
	font-size: 1.6rem;
	font-weight: 600;
	max-width: 800px;
	margin: 0 auto;
	line-height: 1.4;
	opacity: 0.95;
}

/* Pillars */
.section-title {
	text-align: center;
	margin-bottom: 40px;
}

.pillars-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 24px;
}

.pillar-card {
	background: #fff;
	border-radius: 14px;
	padding: 28px 24px;
	text-align: center;
	box-shadow: 0 10px 28px rgba(8, 30, 60, 0.08);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pillar-card i {
	font-size: 1.8rem;
	color: #6b73ff;
	margin-bottom: 14px;
}

.pillar-card h3 {
	margin-bottom: 8px;
	color: #08324b;
}

.pillar-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 18px 44px rgba(8, 30, 60, 0.14);
}

/* Soft CTA */
.soft-cta {
	background: #f1f4ff;
	padding: 70px 0;
	text-align: center;
}

.soft-cta h2 {
	margin-bottom: 10px;
}

.soft-cta p {
	max-width: 600px;
	margin: 0 auto 24px;
	color: #555;
}

/* ========================= SPLIT HERO – COMPACT ========================= */
.split-hero {
	background: linear-gradient(135deg, #6b73ff, #b993ff);
	padding: 36px 0;
	/* ↓ MUCH shorter */
	color: #fff;
	overflow: hidden;
	border-bottom-left-radius: 40px;
	border-bottom-right-radius: 40px;
}

.split-hero .container {
	max-width: 1000px;
	/* ↓ tighter width */
}

.split-hero-inner {
	display: grid;
	grid-template-columns: 1fr 280px;
	/* 🔥 EXACT photo column width */
	align-items: center;
	gap: 16px;
}

/* Text side */
.hero-content h1 {
	font-size: 2.4rem;
	line-height: 1.05;
	margin-bottom: 8px;
	/* ↓ tighter */
}

.hero-content p {
	font-size: 1.05rem;
	opacity: 0.9;
	max-width: 480px;
	margin-bottom: 0;
}

.hero-actions {
	margin-top: 18px;
	/* ↓ tighter */
	display: flex;
	gap: 12px;
}

/* Photo side */
.hero-photo {
	max-width: 280px;
	border-radius: 26px;
	overflow: hidden;
	box-shadow: 0 22px 50px rgba(0, 0, 0, 0.26);
	position: relative;
	/* CRITICAL */
	height: auto;
	align-self: center;
	justify-self: end;
}

/* Image MUST inherit rounding */
.hero-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	/* keeps full vertical photo visible */
	display: block;
}

/* About page adjustments */
.about-section.container {
	padding-top: 24px;
	/* reduced from default 48px */
	margin-top: 24px;
}

.section-card.about-container {
	padding-top: 0;
	/* remove extra top padding from section-card wrapper */
}

/* Optional: tighten spacing between grid items */
.about-grid {
	gap: 64px;
	/* reduce space between photo and text */
}

/* Mobile */
@media (max-width: 900px) {
	.split-hero {
		padding: 48px 0;
	}

	.split-hero-inner {
		grid-template-columns: 1fr;
		text-align: center;
	}

	.hero-photo {
		max-width: 240px;
		margin: 0 auto;
	}

	.hero-content p {
		margin: 0 auto;
	}

	.hero-actions {
		justify-content: center;
	}
	
	.hero-logo {
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
	}
}

/* ================= Hero ================= */
.hero-section {
  background: linear-gradient(135deg, #6b73ff, #b993ff);
  color: #fff;
  padding: 140px 0 80px;
  text-align: center;
  position: relative;
}
.hero-section h1 { font-size: 2.8rem; margin-bottom: 16px; line-height:1.2; }
.hero-section .primary-btn {
  font-size: 1.1rem;
  padding: 16px 36px;
  background: #fff; color: #5a5fff;
  font-weight: 700; border-radius: 14px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hero-section .primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(0,0,0,0.18);
}

/* ================= Sections ================= */
.content-section { margin: 60px 0; }
.content-section h2 { font-size: 1.8rem; margin-bottom: 16px; color: #08324b; }
.content-section p { font-size: 1rem; margin-bottom: 12px; line-height:1.6; color:#444; }

/* ================= Modern Bullet Lists ================= */
.list-positive li::before {
  content: "✓";
  color: #4caf50;
}

.list-negative li::before {
  content: "✕";
  color: #e53935;
}

.list-positive li,
.list-negative li {
  list-style: none;
  position: relative;
  padding-left: 26px;
}

.list-positive li::before,
.list-negative li::before {
  position: absolute;
  left: 0;
  top: 2px;
  font-weight: 700;
}

.modern-list {
  list-style: none;
  padding-left: 0;
  margin-top: 12px;
}
.modern-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  font-size: 0.98rem;
  line-height: 1.5;
  color: #333;
}
.modern-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #5a5fff;
  font-weight: bold;
}


/* ================= Section Cards ================= */
.section-card {
  background: #fff;
  border-radius: 12px;
  padding: 24px 28px;
  box-shadow: 0 8px 24px rgba(8,30,60,0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin: 0 auto 40px; /* center horizontally */
  max-width: 800px;    /* optional: prevent cards from stretching too wide */
}

.section-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(8,30,60,0.12);
}

/* ================= Responsive ================= */
@media(max-width:880px){
  .hero-section h1 { font-size:2.2rem; }
  .hero-section .primary-btn { padding: 14px 28px; font-size:1rem; }
  .content-section h2 { font-size:1.5rem; }
}

.contact-card {
  perspective: 1200px;
  margin: 80px auto;
  max-width: 420px;
}

.contact-card-inner {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(.4,.2,.2,1);
  cursor: pointer;
}

/* Flip state */
.contact-card-inner.is-flipped {
  transform: rotateY(180deg);
}

/* Faces */
.contact-card-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 20px 40px rgba(8,30,60,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Front */
.contact-card-front img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 24px;
}

/* Back */
.contact-card-back {
  transform: rotateY(180deg);
  padding: 32px;
  text-align: center;
}

.contact-card-back h3 {
  margin-bottom: 6px;
  font-size: 1.4rem;
}

.contact-card-back p {
  margin: 6px 0;
  color: #555;
}
