/* HERO */
.kontakt-hero {
	text-align:center;
	padding:120px 20px 60px;
}

/* TEAM */
.team-section {
	padding:60px 20px;
	text-align:center;
}

.team-grid {
	display:grid;
	grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
	gap:40px;
	max-width:900px;
	margin:auto;
}

.team-card {
	padding:30px;
	border-radius:16px;
	background: rgba(25,30,36,0.92);
	border:1px solid rgba(255,255,255,0.08);
	box-shadow:0 20px 60px rgba(0,0,0,0.5);
	transition:transform .25s ease, box-shadow .25s ease;
}

/* subtle hover */
.team-card:hover{
	transform:translateY(-6px);
	box-shadow:0 30px 80px rgba(0,0,0,0.65);
}

.team-card img {
	width:120px;
	height:120px;
	object-fit:cover;
	border-radius:50%;
	margin-bottom:20px;
}

.team-card .role {
	opacity:.8;
	margin-bottom:10px;
}

/* CONTACT FORM */
.contact-modern {
	padding:120px 20px;
	display:flex;
	justify-content:center;
}

.contact-box {
	width:100%;
	max-width:650px;
	padding:60px;
	border-radius:18px;
	background:rgba(46,56,66,0.65);
	backdrop-filter:blur(25px);
	border:1px solid rgba(255,255,255,0.08);
	box-shadow:0 40px 100px rgba(0,0,0,0.6);
}

/* GRID */
.form-grid {
	display:grid;
	grid-template-columns:1fr 1fr;
	gap:20px;
}

.form-grid textarea {
	grid-column:span 2;
	resize:vertical;
	min-height:140px;
}

/* Eemaldab suure ümbrise kontaktvormi ümbert */
.wrapper.style5 {
	background: transparent !important;
	padding: 0 !important;
}

.wrapper.style5 .inner {
	background: transparent !important;
	max-width: none !important;
	padding: 0 !important;
}

/* INPUTS */
.contact-box input,
.contact-box textarea {
	padding:16px;
	border-radius:10px;
	border:1px solid rgba(255,255,255,0.15);
	background:rgba(255,255,255,0.05);
	transition:border .2s ease, box-shadow .2s ease, background .2s ease;
}

/* premium focus glow */
.contact-box input:focus,
.contact-box textarea:focus {
	outline:none;
	border:1px solid rgba(255,255,255,0.35);
	box-shadow:0 0 0 2px rgba(255,255,255,0.08);
	background:rgba(255,255,255,0.08);
}

/* ============================= */
/* FORM ACTIONS FIX (SUUR FIX) */
/* ============================= */

.form-actions {
	margin-top:25px;
	display:flex;
	justify-content:center;
	align-items:center;
	gap:20px;
	flex-wrap:wrap;
}

/* submit button */
.form-actions .primary {
	min-width:200px;
	text-align:center;
}

/* file upload */
.form-actions input[type="file"] {
	max-width:260px;
	width:100%;
	padding:12px;
	border-radius:10px;
	border:1px solid rgba(255,255,255,0.15);
	background:rgba(255,255,255,0.05);
	cursor:pointer;
}

/* mobile */
@media(max-width:768px){
	.form-grid{grid-template-columns:1fr;}
	.form-grid textarea{grid-column:span 1;}
	.contact-box{padding:35px 25px;}

	.form-actions{
		flex-direction:column;
		width:100%;
	}

	.form-actions .primary,
	.form-actions input[type="file"]{
		width:100%;
		max-width:none;
	}
}

/* EMAIL / PHONE parem paigutus profiilikaardis */
.team-card .phone {
	display:block;
	margin-top:12px;
	padding:10px 12px;
	word-break:break-word;
	overflow-wrap:break-word;
	white-space:normal;
	font-size:14px;
	line-height:1.4;
	border-radius:8px;
	background:rgba(255,255,255,0.04);
	border:1px solid rgba(255,255,255,0.08);
}

/* ============================= */
/* MENU SUBMENU (TEENUSED) */
/* ============================= */

.submenu-items {
	display:none;
	padding-left:20px;
	margin-top:10px;
	overflow:hidden;
}

.submenu.open .submenu-items {
	display:block;
}

.submenu-header {
	cursor:pointer;
	display:flex;
	justify-content:space-between;
	align-items:center;
	user-select:none;
}

.submenu-arrow {
	transition:transform .25s ease;
}

.submenu.open .submenu-arrow {
	transform:rotate(90deg);
}

/* smooth transitions global */
.contact-box,
.team-card,
.contact-box input,
.contact-box textarea,
.form-actions input[type="file"]{
	transition:all .25s ease;
}

/* ============================= */
/* FILE UPLOAD PROFESSIONAL FIX */
/* ============================= */

.file-upload-wrapper{
	display:flex;
	align-items:center;
	gap:12px;
}

.file-upload-wrapper input[type="file"]{
	display:none; /* peidame default ugly inputi */
}

.file-upload-btn{
	padding:12px 18px;
	border-radius:10px;
	border:1px solid rgba(255,255,255,0.2);
	background:rgba(255,255,255,0.06);
	cursor:pointer;
	transition:all .2s ease;
}

.file-upload-btn:hover{
	background:rgba(255,255,255,0.12);
}

#fileName{
	font-size:14px;
	opacity:.8;
}

/* ============================= */
/* FORCE HIDE DEFAULT FILE INPUT */
/* ============================= */

.file-upload-wrapper {
	position: relative;
}

/* peidame p채ris inputi t채ielikult */
.file-upload-wrapper input[type="file"]{
	position: absolute !important;
	left: 0;
	top: 0;
	width: 1px !important;
	height: 1px !important;
	opacity: 0 !important;
	pointer-events: none !important;
}

/* ============================= */
/* MOBILE BACKGROUND IMAGE */
/* ============================= */

/* ============================= */
/* MOBILE BACKGROUND IMAGE */
/* ============================= */

@media (max-width:768px){

	html,
	body,
	body.landing,
	#page-wrapper{
		background:url("/renoveerikodu/images/MedicineLake.jpg") center/cover no-repeat !important;
	}

	/* dark overlay loetavuse jaoks */
	#page-wrapper{
		background-color:rgba(0,0,0,0.45);
		background-blend-mode:overlay;
	}

}

/* ============================= */
/* CENTER SUBMIT BUTTON TEXT */
/* ============================= */

.form-actions .primary{
	display:flex;
	align-items:center;
	justify-content:center;

	height:48px;          /* ühtlane kõrgus */
	line-height:1;        /* eemaldab vertikaalse nihke */
	padding:0 24px;       /* kontrollitud padding */

	text-align:center;
}

/* EMAIL FONT CHANGE */

.team-card .phone{
	font-family: Arial, sans-serif; /* vali font */
	font-size:15px;
	font-weight:500;
	letter-spacing:0.5px;
}

/* GLOBAL PAGE BACKGROUND (fixed hero) */
body.landing {
	background-image: url("/renoveerikodu/images/MedicineLake.jpg");
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	background-attachment: fixed; /* see teeb pildi püsivaks */
}

/* bannerile läbipaistev taust */
#banner {
	background: transparent !important;
}

/* et content oleks loetav */
#main,
.wrapper,
.team-section,
.contact-modern {
	background: rgba(200,2100,255,0.05);
}

/* GLOBAL DARK OVERLAY FOR READABILITY */
body.landing::before {
	content: "";
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,0.45); /* muuda 0.35–0.6 kui vaja */
	z-index: 0;
	pointer-events: none;
}

#page-wrapper {
	position: relative;
	z-index: 1;
}

/* TEXT CONTRAST FIX */
.team-card h3,
.team-card p,
.team-card a,
.contact-box h2,
.contact-box label {
	color: #fff;
}

.team-card .role {
	opacity: 0.9;
}

/* JUHATUS pealkiri valgeks */
.team-section h2 {
	color: #fff !important;
}

/* Juhatuse nimed valgeks */
.team-card h3 {
	color: #fff !important;
}

/* FILE BUTTON production style */
.file-upload-btn{
	height:48px;
	display:flex;
	align-items:center;
	justify-content:center;
	padding:0 24px;
	color:#fff;
	border:1px solid rgba(255,255,255,0.25);
	background:rgba(255,255,255,0.08);
	border-radius:10px;
	cursor:pointer;
}

/* sama kõrgus kui submit */
.form-actions .primary{
	height:48px;
}

/* failinimi tekst */
#fileName{
	color:rgba(255,255,255,0.8);
	margin-left:10px;
}

/* ============================= */
/* SAADA PÄRING PEALKIRI VALGEKS */
/* ============================= */

.contact-box h2{
	color:#ffffff !important;
	font-weight:700;
}

/* kui tahad natuke tugevamat kontrasti */
.contact-box h2{
	text-shadow:0 2px 10px rgba(0,0,0,0.5);
}

.contact-box h2{
	color:#fff !important;
	font-weight:700;
	letter-spacing:2px;
	text-shadow:0 2px 20px rgba(0,0,0,0.6);
}

/* center layout */
.contact-modern{
	min-height:80vh;
	display:flex;
	align-items:center;
	justify-content:center;
}

/* ========================= */
/* APPLE GLASS CONTACT PAGE */
/* ========================= */

.contact-apple{
	min-height:80vh;
	display:flex;
	align-items:center;
	justify-content:center;
	padding:80px 20px;
}

/* GLASS CARD */
.glass-container{
	width:100%;
	max-width:720px;
	padding:60px;

	border-radius:24px;

	background:rgba(20,25,30,0.55);
	backdrop-filter:blur(40px);
	-webkit-backdrop-filter:blur(40px);

	border:1px solid rgba(255,255,255,0.08);

	box-shadow:
	0 30px 80px rgba(0,0,0,0.6),
	inset 0 1px 0 rgba(255,255,255,0.05);

	text-align:center;
}

/* TITLE */
.glass-title{
	color:white;
	font-size:32px;
	font-weight:600;
	letter-spacing:1px;
	margin-bottom:40px;
}

/* GRID */
.glass-grid{
	display:grid;
	grid-template-columns:1fr 1fr;
	gap:18px;
}

.glass-grid textarea{
	grid-column:span 2;
	min-height:150px;
	resize:vertical;
}

/* INPUTS */
.glass-grid input,
.glass-grid textarea{
	padding:16px 18px;
	border-radius:14px;

	background:rgba(255,255,255,0.05);
	border:1px solid rgba(255,255,255,0.12);

	color:white;
	font-size:15px;

	transition:.2s ease;
}

/* placeholder */
.glass-grid input::placeholder,
.glass-grid textarea::placeholder{
	color:rgba(255,255,255,0.55);
}

/* focus glow */
.glass-grid input:focus,
.glass-grid textarea:focus{
	outline:none;
	border:1px solid rgba(255,255,255,0.4);
	background:rgba(255,255,255,0.08);
	box-shadow:0 0 0 3px rgba(255,255,255,0.1);
}

/* ACTIONS */
.glass-actions{
	margin-top:30px;
	display:flex;
	gap:15px;
	justify-content:center;
	flex-wrap:wrap;
}

/* BUTTON BASE */
.glass-btn{
	height:52px;
	padding:0 30px;
	border-radius:14px;

	display:flex;
	align-items:center;
	justify-content:center;

	font-weight:600;
	letter-spacing:0.5px;

	cursor:pointer;
	border:none;

	transition:.2s ease;
}

/* SUBMIT BUTTON */
.glass-btn.primary{
	background:#ff6a00;
	color:white;
	box-shadow:0 10px 30px rgba(255,106,0,0.3);
}

.glass-btn.primary:hover{
	transform:translateY(-2px);
	box-shadow:0 15px 40px rgba(255,106,0,0.4);
}

/* FILE BUTTON */
.glass-btn.file{
	background:rgba(255,255,255,0.08);
	border:1px solid rgba(255,255,255,0.2);
	color:white;
	position:relative;
	overflow:hidden;
}

.glass-btn.file input{
	display:none;
}

/* MOBILE */
@media(max-width:768px){
	.glass-grid{
		grid-template-columns:1fr;
	}
	.glass-grid textarea{
		grid-column:span 1;
	}
	.glass-container{
		padding:40px 25px;
	}
}

/* ===== Smooth scroll ===== */
html {
  scroll-behavior: smooth;
}

/* ===== Scroll arrow Apple style ===== */
#banner {
  position: relative;
}

.scroll-down {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  text-decoration: none;
  opacity: 0.9;
  transition: 0.3s;
}

/* Apple clean chevron */
.scroll-down span {
  display: block;
  width: 22px;
  height: 22px;
  border-bottom: 2px solid rgba(255,255,255,0.9);
  border-right: 2px solid rgba(255,255,255,0.9);
  transform: rotate(45deg);
  animation: scrollBounce 2s infinite;
}

/* hover */
.scroll-down:hover {
  opacity: 1;
}

/* smooth bounce */
@keyframes scrollBounce {
  0%,100% { transform: rotate(45deg) translate(0,0); }
  50% { transform: rotate(45deg) translate(6px,6px); }
}

html {
  scroll-behavior: smooth;
}